seed
seed copied to clipboard
Fix issue caused by Filter Groups where Inventory Page is loaded twice
When the inventory page is loaded or refreshed, it loads the table twice instead of just one time. This issue started after Filter Groups were added.
Every time the filter group updates, updateCurrentFilterGroup
is called.
updateCurrentFilterGroup
calls filterUsingLabels
and potentially alters gridApi.grid.columns[i].filters
, both of which load the inventory (filterUsingLabels, onfiltersChange).
We could just refactor filterUsingLabels
so it doesn't call load_inventory
, but there's no promise that the filter group will change the filters and call load_inventory
.
idk what the right move is here. thoughts?
@axelstudios When you get back, can help take a look?
This issue has been automatically marked as stale because it has not had recent activity within 60 days. It will be closed if no further activity occurs. Thank you for your contributions.