We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702f80c commit 7cfcd37Copy full SHA for 7cfcd37
1 file changed
packages/docusaurus-theme-common/src/hooks/useWindowSize.ts
@@ -49,8 +49,7 @@ const DevSimulateSSR = process.env.NODE_ENV === 'development' && true;
49
export function useWindowSize(desktopThresholdWidth?: number): WindowSize {
50
const {siteConfig} = useDocusaurusContext();
51
const siteConfigDesktopThresholdWidth =
52
- // @ts-expect-error the values in customFields can be anything, so let's ignore this TS error
53
- siteConfig?.themeConfig?.customFields?.breakpoints?.desktop;
+ siteConfig?.customFields?.breakpoints?.desktop;
54
const customDesktopThresholdWidth =
55
desktopThresholdWidth ?? siteConfigDesktopThresholdWidth;
56
const finalDesktopThresholdWidth = customDesktopThresholdWidth ?? 996;
0 commit comments