mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
fix: fix missing key in meta og:title
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
fe3ed17610
commit
083da302af
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export const OpengraphHead: React.FC = () => {
|
|||
.filter(([, value]) => value && String(value).trim() !== '')
|
||||
.map(([key, value]) => <meta property={`og:${key}`} content={value} key={key} />)
|
||||
if (!('title' in openGraphData)) {
|
||||
elements.push(<meta property={'og:title'} content={noteTitle} />)
|
||||
elements.push(<meta property={'og:title'} content={noteTitle} key={'title'} />)
|
||||
}
|
||||
return elements
|
||||
}, [noteTitle, openGraphData])
|
||||
|
|
Loading…
Reference in a new issue