diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index b63973175055a64cab757efcf578bb475b63b670..d00893b0592826aac47545c36711a6e156920776 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 || [];