Commit 6984ac05 authored by yoyo837's avatar yoyo837 Committed by 陈帅

See #1729

parent 37221294
......@@ -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 || [];
......
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