Skip to content

Commit

Permalink
Fix duplicate display in assets registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcameron committed Jun 14, 2022
1 parent a930bfd commit ead1ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/modules/assets/assets-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function AssetsRegistryController(
// FIXME(@jniles): we should do this ordering on the server via an ORDER BY
lots.sort(AssetsRegistry.orderByDepot);

vm.gridOptions.data = lots;
vm.gridOptions.data = lots.filter(lot => lot.quantity > 0);

vm.grouping.unfoldAllGroups();
vm.gridApi.core.notifyDataChange(uiGridConstants.dataChange.COLUMN);
Expand Down

0 comments on commit ead1ece

Please sign in to comment.