Skip to content

Commit

Permalink
fix(bridge): execute metaInfo function (nuxt#3258)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Feb 16, 2022
1 parent 3fccbfa commit 289d54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bridge/src/runtime/composables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ export const useNuxt2Meta = (metaOptions: Reffed<MetaInfo> | (() => Reffed<MetaI
const originalHead = app.head
app.head = function () {
const head = originalHead.call(this) || {}
return defu(unwrap(metaInfoFromOptions(metaOptions)), head)
return defu(unwrap(metaInfoFromOptions(metaOptions)()), head)
}
} else {
app.head = defu(unwrap(metaInfoFromOptions(metaOptions)), app.head)
app.head = defu(unwrap(metaInfoFromOptions(metaOptions)()), app.head)
}
}
}
Expand Down

0 comments on commit 289d54e

Please sign in to comment.