From 14d2b833d8c2ac706ad715aa89a85ccc3845f587 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Mon, 29 Nov 2021 15:33:29 -0300 Subject: [PATCH] Fix crash produced when adding a custom field on a Secure Note, because it try to load the control of linked fields even if it's not the type (#1668) --- src/App/Pages/Vault/AddEditPageViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Pages/Vault/AddEditPageViewModel.cs b/src/App/Pages/Vault/AddEditPageViewModel.cs index fbbd6ad17..cbad6b10a 100644 --- a/src/App/Pages/Vault/AddEditPageViewModel.cs +++ b/src/App/Pages/Vault/AddEditPageViewModel.cs @@ -929,7 +929,7 @@ namespace Bit.App.Pages public List> LinkedFieldOptions { - get => _cipher.LinkedFieldOptions + get => _cipher.LinkedFieldOptions? .Select(kvp => new KeyValuePair(_i18nService.T(kvp.Key), kvp.Value)) .ToList(); }