From d08803bda2ec25115f4ebdf7b978632f0f8e1c13 Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Sun, 30 May 2021 10:26:36 +0200 Subject: [PATCH] Item picker: load items when passed an empty array (#1073) Fix #1062. Signed-off-by: Yannick Schaus --- .../web/src/components/config/controls/item-picker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/components/config/controls/item-picker.vue b/bundles/org.openhab.ui/web/src/components/config/controls/item-picker.vue index 1ef0bd9346..21bc811907 100644 --- a/bundles/org.openhab.ui/web/src/components/config/controls/item-picker.vue +++ b/bundles/org.openhab.ui/web/src/components/config/controls/item-picker.vue @@ -48,7 +48,7 @@ export default { }, created () { this.smartSelectParams.closeOnSelect = !(this.multiple) - if (!this.items) { + if (!this.items || !this.items.length) { // TODO use a Vuex store this.$oh.api.get('/rest/items').then((items) => { this.sortAndFilterItems(items)