From ead1ece2dbbc0843b58f9548b641e5c93e2e8164 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Tue, 14 Jun 2022 16:02:20 +0200 Subject: [PATCH] Fix duplicate display in assets registry --- client/src/modules/assets/assets-registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/modules/assets/assets-registry.js b/client/src/modules/assets/assets-registry.js index 965ec286e0..855f6244f8 100644 --- a/client/src/modules/assets/assets-registry.js +++ b/client/src/modules/assets/assets-registry.js @@ -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);