From 551217ea38019c08157637f9e29dc726f7d1dcb8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 3 Apr 2018 08:35:45 -0400 Subject: [PATCH] filter for unassigned collection grouping --- src/app/organization/organizationVaultController.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/organization/organizationVaultController.js b/src/app/organization/organizationVaultController.js index 072f640806..4ac7b82f90 100644 --- a/src/app/organization/organizationVaultController.js +++ b/src/app/organization/organizationVaultController.js @@ -207,9 +207,16 @@ resetSelected(); $scope.selectedCollection = col; $scope.selectedIcon = 'fa-cube'; - $scope.filter = function (c) { - return c.collectionIds && c.collectionIds.indexOf(col.id) > -1; - }; + if (col.id) { + $scope.filter = function (c) { + return c.collectionIds && c.collectionIds.indexOf(col.id) > -1; + }; + } + else { + $scope.filter = function (c) { + return !c.collectionIds || c.collectionIds.length === 0; + }; + } fixLayout(); };