From 3d7a65aa93173a373aa0811089fb92fec9924036 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 20 May 2021 17:07:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8B=E6=8B=89=E6=A1=86=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=BB=84=E4=BB=B6=E9=9D=9E=E7=A9=BA=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/widget/serviceImpl/TextSelectServiceImpl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js b/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js index 4cf30e26e0..803a68757f 100644 --- a/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js +++ b/frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js @@ -68,7 +68,7 @@ class TextSelectServiceImpl extends WidgetService { optionDatas(datas) { if (!datas) return null - return datas.map(item => { + return datas.filter(item => !!item).map(item => { return { id: item, text: item