fix(admin-ui): Fix inventory table pagination on location filter change (#3479)
Inventory table offset should now correctly reset when a new location is selected from the filtering dropdown. Resolves CORE-1231.
This commit is contained in:
1 parent
3be6084dfd
commit
8e78c533c4
2 files changed
+6
No files matched your search
@@ -154,6 +154,7 @@ export const useInventoryFilters = (
|
||||
|
||||
const setLocationFilter = (loc: string) => {
|
||||
dispatch({ type: "setLocation", payload: loc })
|
||||
dispatch({ type: "setOffset", payload: 0 })
|
||||
}
|
||||
|
||||
const paginate = (direction: 1 | -1) => {
|
||||
|
||||
Reference in new issue
Block a user