fix(dashboard): improve inventory level location management (#13589)
**What** - add InfiniteList on location selection for inventory level -> fixes issue with location pagination - fix removal of location level for an inventory item - refresh the levels table when locations are updated - add search input for filtering locations --- CLOSES CORE-1208
This commit is contained in:
@@ -241,6 +241,9 @@ export const useBatchInventoryItemLocationLevels = (
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: inventoryItemLevelsQueryKeys.detail(inventoryItemId),
|
||||
})
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: inventoryItemLevelsQueryKeys.list({ inventoryItemId }),
|
||||
})
|
||||
options?.onSuccess?.(data, variables, context)
|
||||
},
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user