From c6096801e0e3b8b71d1969d58f3220aabc248a48 Mon Sep 17 00:00:00 2001 From: frankpagan Date: Mon, 16 Oct 2023 02:06:13 -0600 Subject: [PATCH] fix: await getValue() --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 159c1b7..e820c59 100644 --- a/src/index.js +++ b/src/index.js @@ -163,7 +163,7 @@ CoCreateChartManager.prototype = { } }, - _initfetchData: function () { + _initfetchData: async function () { for (let i = 0; i < this.charts.length; i++) { for (let ii = 0; ii < this.charts[i].datasets_el.length; ii++) { @@ -190,7 +190,7 @@ CoCreateChartManager.prototype = { let data if (elements[j].getValue) - data = elements[j].getValue() + data = await elements[j].getValue() if (data) this.setData(data, operator);