1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-26 10:36:21 +02:00

fix no folder reference

This commit is contained in:
Kyle Spearrin 2019-07-22 10:52:04 -04:00
parent e7ce050324
commit 50623b9b29

View File

@ -41,7 +41,7 @@ namespace Bit.App.Pages
_vm = BindingContext as AddEditPageViewModel;
_vm.Page = this;
_vm.CipherId = cipherId;
_vm.FolderId = folderId;
_vm.FolderId = folderId == "none" ? null : folderId;
_vm.CollectionIds = collectionId != null ? new HashSet<string>(new List<string> { collectionId }) : null;
_vm.Type = type;
_vm.DefaultName = name ?? appOptions?.SaveName;