Skip to content

Commit

Permalink
fix: add optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
EmNudge committed Nov 29, 2023
1 parent 2b2b1f3 commit 2616dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export async function renderPages(
helmet?.link?.toString(),
helmet?.style?.toString(),
helmet?.script?.toString(),
config.themeConfig.darkMode !== false
config.themeConfig?.darkMode !== false
? CHECK_DARK_LIGHT_SCRIPT
: '',
])
Expand Down

0 comments on commit 2616dc2

Please sign in to comment.