Commit 993fab9e authored by nikogu's avatar nikogu

fix dump resize function in Pie

parent 8d9b7cfd
......@@ -36,7 +36,8 @@ class Pie extends Component {
@Debounce(200)
resize = () => {
const { hasLegend } = this.props;
if (!hasLegend || !this.node) {
if (!hasLegend || !this.root) {
window.removeEventListener('resize', this.resize);
return;
}
// antd xs size
......
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