mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Fix selecting ciphers in search not working (#1426)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user