From defce07c3009786e917b793daa4116cdf5e8dda4 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 12 Aug 2020 14:25:53 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-37258=20fix:=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=B0=83=E7=94=A8populate=20=E6=B8=85=E7=A9=BA=E4=BA=86?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/treevaluechooser/combo.listtreevaluechooser.js | 4 +++- .../treevaluechooser/combo.treevaluechooser.insert.js | 4 +++- src/component/treevaluechooser/combo.treevaluechooser.js | 4 +++- src/component/treevaluechooser/pane.treevaluechooser.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/component/treevaluechooser/combo.listtreevaluechooser.js b/src/component/treevaluechooser/combo.listtreevaluechooser.js index b6ceac719..51e9cd047 100644 --- a/src/component/treevaluechooser/combo.listtreevaluechooser.js +++ b/src/component/treevaluechooser/combo.listtreevaluechooser.js @@ -93,7 +93,9 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser, }, populate: function (items) { - this._initData(items); + if (BI.isNotNull(items)) { + this._initData(items); + } this.combo.populate(); } }); diff --git a/src/component/treevaluechooser/combo.treevaluechooser.insert.js b/src/component/treevaluechooser/combo.treevaluechooser.insert.js index a99d24cc3..15ebd6ea0 100644 --- a/src/component/treevaluechooser/combo.treevaluechooser.insert.js +++ b/src/component/treevaluechooser/combo.treevaluechooser.insert.js @@ -92,7 +92,9 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, { }, populate: function (items) { - this._initData(items); + if (BI.isNotNull(items)) { + this._initData(items); + } this.combo.populate(); } }); diff --git a/src/component/treevaluechooser/combo.treevaluechooser.js b/src/component/treevaluechooser/combo.treevaluechooser.js index b1a11cb5d..2b567b087 100644 --- a/src/component/treevaluechooser/combo.treevaluechooser.js +++ b/src/component/treevaluechooser/combo.treevaluechooser.js @@ -96,7 +96,9 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { }, populate: function (items) { - this._initData(items); + if (BI.isNotNull(items)) { + this._initData(items); + } this.combo.populate(); } }); diff --git a/src/component/treevaluechooser/pane.treevaluechooser.js b/src/component/treevaluechooser/pane.treevaluechooser.js index a8b444390..39a81d0c4 100644 --- a/src/component/treevaluechooser/pane.treevaluechooser.js +++ b/src/component/treevaluechooser/pane.treevaluechooser.js @@ -50,7 +50,9 @@ BI.TreeValueChooserPane = BI.inherit(BI.AbstractTreeValueChooser, { }, populate: function (items) { - this._initData(items); + if (BI.isNotNull(items)) { + this._initData(items); + } this.pane.populate(); } });