From 8773b0dae56eda63a49c35cc8e194f33175cbb4e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 6 Jul 2018 11:28:39 +0200 Subject: Avoid warning about undefined --- views/log/qml/View.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/log/qml/View.qml b/views/log/qml/View.qml index 560a4cff..05fae4ce 100644 --- a/views/log/qml/View.qml +++ b/views/log/qml/View.qml @@ -175,7 +175,7 @@ Controls1.SplitView { property string resourceId: details.resourceId property string accountId: retriever.currentData ? retriever.currentData.accountId : "" property string accountName: retriever.currentData ? retriever.currentData.name : "" - property string entityId: details.entities.length != 0 ? details.entities[0] : "" + property string entityId: (details.entities && details.entities.length != 0) ? details.entities[0] : "" function getComponent(subtype) { if (subtype == Kube.Notifications.loginError) { -- cgit v1.2.3