1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-25 12:05:59 +01:00

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)

This commit is contained in:
Federico Maccaroni 2021-11-29 15:33:29 -03:00 committed by GitHub
parent 9fdf2ada6f
commit 14d2b833d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -929,7 +929,7 @@ namespace Bit.App.Pages
public List<KeyValuePair<string, LinkedIdType>> LinkedFieldOptions
{
get => _cipher.LinkedFieldOptions
get => _cipher.LinkedFieldOptions?
.Select(kvp => new KeyValuePair<string, LinkedIdType>(_i18nService.T(kvp.Key), kvp.Value))
.ToList();
}