Fix for table double loading (#6035)

- Closes https://github.com/inventree/InvenTree/issues/6031
This commit is contained in:
Oliver 2023-12-05 23:20:53 +11:00 committed by GitHub
parent 22800d6b10
commit e6e1a66b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,8 @@ export function InvenTreeTable<T = any>({
// Active filters (saved to local storage)
const [activeFilters, setActiveFilters] = useLocalStorage<any[]>({
key: `inventree-active-table-filters-${tableName}`,
defaultValue: []
defaultValue: [],
getInitialValueInEffect: false
});
// Data selection