Skip to content

Commit ef83841

Browse files
committed
fix(schema-org): nuxt test utils compat bug
1 parent ffb3895 commit ef83841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schema-org/src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<Met
176176
let firstNodeKey: number | undefined
177177
for (const k in ctx.tags) {
178178
const tag = ctx.tags[k]
179-
if (!tag)
179+
if (!tag?.props)
180180
continue
181181
if ((tag.props.type === 'application/ld+json' && tag.props.nodes) || tag.key === 'schema-org-graph') {
182182
delete tag.props.nodes

0 commit comments

Comments
 (0)