search: fix typeerror by removing device

This commit is contained in:
Dag Heyman 2019-10-03 14:52:25 +02:00
parent 6bd238b813
commit ba74b59a2f

View File

@ -33,7 +33,7 @@ ScrollView {
})
for (var i = 0; i < entries.count; i++) {
var entry = entries.get(i)
if (entry !== null && entry !== undefined) {
if (!!entry && !!entry.credential) {
if (entry.credential.key.toLowerCase().indexOf(
toolBar.searchField.text.toLowerCase(
)) !== -1) {