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:
5
.changeset/late-dots-lie.md
Normal file
5
.changeset/late-dots-lie.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/admin-ui": patch
|
||||
---
|
||||
|
||||
fix(admin-ui): Fix inventory table pagination on location filter change
|
||||
@@ -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