diff --git a/client/template.js b/client/template.js index 13e09711c..cab4790b9 100644 --- a/client/template.js +++ b/client/template.js @@ -1,6 +1,7 @@ const template = async function(name, title='', props = {}){ const ogTags = []; - Object.entries(props.ogMeta).forEach(([key, value])=>{ + const ogMeta = props.ogMeta ?? {}; + Object.entries(ogMeta).forEach(([key, value])=>{ if(!value) return; const tag = ``; ogTags.push(tag);