Fix document type guard
This commit is contained in:
parent
7530e6f48f
commit
2b44a5fa04
@ -23,7 +23,7 @@ export default function useRecipeState({
|
||||
...pathComponents
|
||||
} = getPathComponents(pathname);
|
||||
|
||||
const searchParamShow = document?.location
|
||||
const searchParamShow = typeof document !== 'undefined'
|
||||
? (new URLSearchParams(document.location.search)).get(SEARCH_PARAM_SHOW)
|
||||
: undefined;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user