chore(nitro): avoid optional chaining in nitro render fn (#493)

This commit is contained in:
Daniel Roe 2021-09-08 10:54:17 +01:00 committed by GitHub
parent f468ad59e4
commit 133c03ae2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ async function renderHTML (payload, rendered, ssrContext) {
const html = rendered.html
if ('renderMeta' in ssrContext) {
rendered.meta = await ssrContext.renderMeta?.()
rendered.meta = await ssrContext.renderMeta()
}
const {