Skip to content

Commit 7cfcd37

Browse files
committed
Fix siteConfig breakpoint
1 parent 702f80c commit 7cfcd37

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/docusaurus-theme-common/src/hooks/useWindowSize.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ const DevSimulateSSR = process.env.NODE_ENV === 'development' && true;
4949
export function useWindowSize(desktopThresholdWidth?: number): WindowSize {
5050
const {siteConfig} = useDocusaurusContext();
5151
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;
52+
siteConfig?.customFields?.breakpoints?.desktop;
5453
const customDesktopThresholdWidth =
5554
desktopThresholdWidth ?? siteConfigDesktopThresholdWidth;
5655
const finalDesktopThresholdWidth = customDesktopThresholdWidth ?? 996;

0 commit comments

Comments
 (0)