Commit 6984ac05 authored by yoyo837's avatar yoyo837 Committed by ι™ˆεΈ…

See #1729

parent 37221294
...@@ -138,11 +138,15 @@ export default class Pie extends Component { ...@@ -138,11 +138,15 @@ export default class Pie extends Component {
[styles.legendBlock]: legendBlock, [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 data = propsData || [];
let selected = propsSelected || true; let selected = propsSelected;
let tooltip = propsTooltip || true; let tooltip = propsTooltip;
const defaultColors = colors; const defaultColors = colors;
// let data = this.props.data || []; // let data = this.props.data || [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment