Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(chart): chart
Browse files Browse the repository at this point in the history
use plugins:['chart'],but no any chart configuration,will throw error
  • Loading branch information
Dushusir committed Sep 7, 2020
1 parent bad248b commit 2be467d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/expendPlugins/chart/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ function chart(data, isDemo) {

// rendercharts
function renderCharts(chartLists, isDemo) {

// no chart
if(chartLists == undefined){
return;
}

for (let i = 0; i < chartLists.length; i++) {
let chart = chartLists[i]

Expand Down

0 comments on commit 2be467d

Please sign in to comment.