From fab599fed8961ba2e9a7487e024e3699f7d484d1 Mon Sep 17 00:00:00 2001 From: tanemaki <80963364+tane-maki@users.noreply.github.com> Date: Sat, 15 Jun 2024 10:42:55 +0900 Subject: [PATCH] Bug fix #219 --- examples/vote/js/config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/vote/js/config.js b/examples/vote/js/config.js index c8634eb..e644faf 100644 --- a/examples/vote/js/config.js +++ b/examples/vote/js/config.js @@ -144,8 +144,10 @@ jQuery.noConflict(); arrItem.push($(item)); } }); - this.data.value = data; - this.data.name = arrItem[0].text(); + if (arrItem.length) { + this.data.value = data; + this.data.name = arrItem[0].text(); + } } const itemSelected = this.$el.find('.kintoneplugin-dropdown-list-item-selected'); itemSelected.removeClass('kintoneplugin-dropdown-list-item-selected');