From 8420670612fc68ef8a162c7370ae1dc4affe23cc Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 13 Sep 2024 15:41:28 +0900 Subject: [PATCH] =?UTF-8?q?Dataset.=5FgetDataItems(...)=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/dataset.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/resources/js/base/dataset.js b/src/main/webapp/resources/js/base/dataset.js index d45ff7c..64a3bd3 100644 --- a/src/main/webapp/resources/js/base/dataset.js +++ b/src/main/webapp/resources/js/base/dataset.js @@ -543,11 +543,10 @@ class Dataset { } _getDataItems(obj, option) { - obj = obj || []; - let array = Array.isArray(obj) ? [obj] : null; + let array = Array.isArray(obj) ? obj : null; if (!array && this.conf.dataGetter) array = this.conf.dataGetter(obj) || []; - array = array || []; + array = array || [obj]; /* let array = Array.isArray(obj) ? obj : this.conf.dataGetter(obj) || []; if (!Array.isArray(array))