From 0116572fecee6faaf6cd33f8a5b3ca0f7fe4f207 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 17 Jun 2019 10:21:05 -0400 Subject: [PATCH] show nested collections in groupings pages --- src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs index 4900e874c..928ba17fd 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs @@ -328,7 +328,7 @@ namespace Bit.App.Pages { Folders = await _folderService.GetAllDecryptedAsync(); NestedFolders = await _folderService.GetAllNestedAsync(); - HasFolders = NestedFolders.Any(); + HasFolders = NestedFolders.Any(f => f.Node?.Id != null); Collections = await _collectionService.GetAllDecryptedAsync(); NestedCollections = await _collectionService.GetAllNestedAsync(Collections); HasCollections = NestedCollections.Any(); @@ -366,6 +366,7 @@ namespace Bit.App.Pages if(collectionNode?.Node != null) { PageTitle = collectionNode.Node.Name; + NestedCollections = (collectionNode.Children?.Count ?? 0) > 0 ? collectionNode.Children : null; } Filter = c => c.CollectionIds?.Contains(CollectionId) ?? false; }