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