From 5a7a37a241c1c698ba74d934a25851b5bf2c84f7 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Sun, 5 Feb 2023 22:11:53 +0100 Subject: [PATCH] fix: use modern in syntax instead of Object.prototype.hasOwnProperty Signed-off-by: Erik Michelson --- .../components/editor-page/opengraph-head/opengraph-head.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/editor-page/opengraph-head/opengraph-head.tsx b/frontend/src/components/editor-page/opengraph-head/opengraph-head.tsx index b68065f30..7dc28e0a8 100644 --- a/frontend/src/components/editor-page/opengraph-head/opengraph-head.tsx +++ b/frontend/src/components/editor-page/opengraph-head/opengraph-head.tsx @@ -18,7 +18,7 @@ export const OpengraphHead: React.FC = () => { const elements = Object.entries(openGraphData) .filter(([, value]) => value && String(value).trim() !== '') .map(([key, value]) => ) - if (!Object.prototype.hasOwnProperty.call(openGraphData, 'title')) { + if (!('title' in openGraphData)) { elements.push() } return elements