Skip to content

Commit 31a7d7b

Browse files
committed
fix: dirty set for local storage in useUrlFilters
1 parent cec4d33 commit 31a7d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Hooks/useUrlFilters/useUrlFilters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const useUrlFilters = <T = string, K = unknown>({
163163
useEffect(() => {
164164
// if we have search string, set secondary params in local storage accordingly
165165
if (location.search) {
166-
localStorage.setItem(localStorageKey, JSON.stringify(parsedParams))
166+
setItemInLocalStorageIfKeyExists(localStorageKey, JSON.stringify(parsedParams))
167167
return
168168
}
169169
const localStorageValue = localStorage.getItem(localStorageKey)

0 commit comments

Comments
 (0)