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');