Skip to content

Commit

Permalink
Fix pie chart no data
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinmp committed Apr 13, 2018
1 parent 75deea7 commit 3d9354c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PieChart/components/PieChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class PieChart extends Component<PieChartProps, PieChartState> {
}

private getData(props: PieChartProps): PieData[] {
if (props.data) {
if (props.data && props.data.length) {
const advancedOptions = props.devMode !== "basic" && this.state.dataOptions
? JSON.parse(this.state.dataOptions)
: {};
Expand Down

0 comments on commit 3d9354c

Please sign in to comment.