1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-22 11:35:21 +01:00

Fix selecting ciphers in search not working (#1426)

This commit is contained in:
Oscar Hinton 2021-06-11 15:20:42 +02:00 committed by GitHub
parent df412e75d1
commit 0aed13a2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
using System;
using System;
using System.Linq;
using Bit.App.Controls;
using Bit.App.Resources;
using Bit.Core.Models.View;
@ -96,7 +97,7 @@ namespace Bit.App.Pages
return;
}
if (e.CurrentSelection is SendView send)
if (e.CurrentSelection?.FirstOrDefault() is SendView send)
{
await _vm.SelectSendAsync(send);
}

View File

@ -3,6 +3,7 @@ using Bit.App.Resources;
using Bit.Core.Models.View;
using Bit.Core.Utilities;
using System;
using System.Linq;
using Bit.App.Controls;
using Xamarin.Forms;
@ -128,7 +129,7 @@ namespace Bit.App.Pages
return;
}
if (e.CurrentSelection is CipherView cipher)
if (e.CurrentSelection?.FirstOrDefault() is CipherView cipher)
{
await _vm.SelectCipherAsync(cipher);
}