From ba74b59a2fe8a5697601a21bf2d0cc6ba8444170 Mon Sep 17 00:00:00 2001 From: Dag Heyman Date: Thu, 3 Oct 2019 14:52:25 +0200 Subject: [PATCH] search: fix typeerror by removing device --- qml/CredentialsView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/CredentialsView.qml b/qml/CredentialsView.qml index 7e2d5baf..177df3b9 100644 --- a/qml/CredentialsView.qml +++ b/qml/CredentialsView.qml @@ -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) {