We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
global
1 parent 1cb7eb8 commit 03b2e92Copy full SHA for 03b2e92
1 file changed
src/components/box/Box.js
@@ -9,7 +9,7 @@ export const Box = ({
9
}) => {
10
return (
11
<section className={className} style={{ background: '#fbfbfb', ...style }}>
12
- <ErrorBoundary resetKeys={[global.location.pathname]}>
+ <ErrorBoundary resetKeys={[globalThis.location?.pathname || '']}>
13
{children}
14
</ErrorBoundary>
15
</section>
0 commit comments