diff --git a/core/docz/src/hooks/useCurrentDoc.tsx b/core/docz/src/hooks/useCurrentDoc.tsx index 03e9de08d..f3c4a5cf5 100644 --- a/core/docz/src/hooks/useCurrentDoc.tsx +++ b/core/docz/src/hooks/useCurrentDoc.tsx @@ -4,7 +4,6 @@ import { get } from 'lodash/fp' import { doczState } from '../state' export const useCurrentDoc = () => { - if (typeof window === 'undefined') return null const state = useContext(doczState.context) return get('currentEntry.value', state) }