From 6984ac0503746613e2936d39509b989040f673f7 Mon Sep 17 00:00:00 2001 From: yoyo837 Date: Mon, 25 Jun 2018 18:30:35 +0800 Subject: [PATCH] See #1729 --- src/components/Charts/Pie/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index b6397317..d00893b0 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -138,11 +138,15 @@ export default class Pie extends Component { [styles.legendBlock]: legendBlock, }); - const { data: propsData, selected: propsSelected, tooltip: propsTooltip } = this.props; + const { + data: propsData, + selected: propsSelected = true, + tooltip: propsTooltip = true, + } = this.props; let data = propsData || []; - let selected = propsSelected || true; - let tooltip = propsTooltip || true; + let selected = propsSelected; + let tooltip = propsTooltip; const defaultColors = colors; // let data = this.props.data || []; -- GitLab