Skip to content

Commit

Permalink
chore: rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
arndom committed Nov 24, 2024
2 parents 4864ec7 + ee10e91 commit 31011aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/hooks/useTable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,19 +450,19 @@ export function useTable<
defaultFilter ?? [],
);

let newFilters: CrudFilter[] = [];
let new_filters: CrudFilter[] = [];
const urlsAreEqual = isEqual(currentUrlFilters, currentFilters);

if (!urlsAreEqual) {
// fallback to initial filters
if (!currentUrlFilters || currentUrlFilters.length === 0) {
newFilters = initialFilters;
new_filters = initialFilters;
} else {
// since they aren't equal, merge the two
newFilters = mergeFilters(currentUrlFilters, currentFilters);
new_filters = mergeFilters(currentUrlFilters, currentFilters);
}

setFilters(newFilters);
setFilters(new_filters);
}
}
}, [parsedParams, filters, preferredPermanentFilters]);
Expand Down

0 comments on commit 31011aa

Please sign in to comment.