File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,8 +138,10 @@ define([
138138 this . _resize ( ) ;
139139 } ) ) ;
140140
141+ var content = this . _data . object . get ( this . numberInside ) ;
142+
141143 // Set the con
142- html . set ( this . _numberNode , this . _data . object . get ( this . numberInside ) . toString ( ) ) ;
144+ html . set ( this . _numberNode , content !== null ? content . toString ( ) : "" ) ;
143145
144146 // Add class to determain chart type
145147 this . _addChartClass ( "chartjs-doughnut-chart" ) ;
Original file line number Diff line number Diff line change @@ -139,8 +139,10 @@ define([
139139 } ;
140140 this . _chart = new this . _chartJS ( this . _ctx , chartProperties ) ;
141141
142+ var content = this . _data . object . get ( this . numberInside ) ;
143+
142144 // Set the con
143- html . set ( this . _numberNode , this . _data . object . get ( this . numberInside ) . toString ( ) ) ;
145+ html . set ( this . _numberNode , content !== null ? content . toString ( ) : "" ) ;
144146
145147 // Add class to determain chart type
146148 this . _addChartClass ( "chartjs-pie-chart" ) ;
You can’t perform that action at this time.
0 commit comments