Skip to content

Commit

Permalink
fix: await getValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 16, 2023
1 parent 374f48f commit c609680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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);

Expand Down

0 comments on commit c609680

Please sign in to comment.