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:
@@ -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