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 = BindingContext as AddEditPageViewModel;
_vm.Page = this; _vm.Page = this;
_vm.CipherId = cipherId; _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.CollectionIds = collectionId != null ? new HashSet<string>(new List<string> { collectionId }) : null;
_vm.Type = type; _vm.Type = type;
_vm.DefaultName = name ?? appOptions?.SaveName; _vm.DefaultName = name ?? appOptions?.SaveName;