Skip to content

Commit

Permalink
fix: one rule
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Nov 8, 2024
1 parent ad90cdd commit 949b3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/filtering/useSearchParamState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function useSearchParamState<T>(
);

const state = useMemo(() => {
const value = searchParams.get(key);
const value = location && searchParams.get(key);

if (value === null) return;
return transform(value);
Expand Down

0 comments on commit 949b3fd

Please sign in to comment.