Skip to content

Commit

Permalink
fix(config): set scrollOffset to 0 is not effect (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed May 21, 2023
1 parent 26f21d9 commit 8153f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/config.ts
Expand Up @@ -222,7 +222,7 @@ export async function resolveSiteData(
appearance: userConfig.appearance ?? true,
themeConfig: userConfig.themeConfig || {},
locales: userConfig.locales || {},
scrollOffset: userConfig.scrollOffset || 90,
scrollOffset: userConfig.scrollOffset ?? 90,
cleanUrls: !!userConfig.cleanUrls
}
}
Expand Down

0 comments on commit 8153f23

Please sign in to comment.