summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-06 11:28:39 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-06 23:50:37 +0200
commit8773b0dae56eda63a49c35cc8e194f33175cbb4e (patch)
tree0fb97bb6986306df50181f43461e697af4537651
parent8b2eec785b3a4b56f8807f60f5b5615bbacc6b2e (diff)
downloadkube-8773b0dae56eda63a49c35cc8e194f33175cbb4e.tar.gz
kube-8773b0dae56eda63a49c35cc8e194f33175cbb4e.zip
Avoid warning about undefined
-rw-r--r--views/log/qml/View.qml2
1 files changed, 1 insertions, 1 deletions
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 {
175 property string resourceId: details.resourceId 175 property string resourceId: details.resourceId
176 property string accountId: retriever.currentData ? retriever.currentData.accountId : "" 176 property string accountId: retriever.currentData ? retriever.currentData.accountId : ""
177 property string accountName: retriever.currentData ? retriever.currentData.name : "" 177 property string accountName: retriever.currentData ? retriever.currentData.name : ""
178 property string entityId: details.entities.length != 0 ? details.entities[0] : "" 178 property string entityId: (details.entities && details.entities.length != 0) ? details.entities[0] : ""
179 179
180 function getComponent(subtype) { 180 function getComponent(subtype) {
181 if (subtype == Kube.Notifications.loginError) { 181 if (subtype == Kube.Notifications.loginError) {