mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
fix(filters): detecting changed filters for numeric values
This commit is contained in:
@@ -232,7 +232,8 @@ export function getChangedFilters(currentFilters: Record<string, any>): string[]
|
|||||||
return (
|
return (
|
||||||
Object.keys(currentFilters).filter(
|
Object.keys(currentFilters).filter(
|
||||||
(filterKey) =>
|
(filterKey) =>
|
||||||
currentFilters[filterKey] !== initFilters[filterKey as keyof typeof initFilters]
|
currentFilters[filterKey].toString() !==
|
||||||
|
initFilters[filterKey as keyof typeof initFilters].toString()
|
||||||
) ?? []
|
) ?? []
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user