king
2020-06-08 46fa548514ba2a438908586e2b54ed742777e9b0
src/templates/sharecomponent/chartcomponent/index.jsx
@@ -601,9 +601,13 @@
    this.props.plotchange({...config, charts: _charts})
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
  }
  render() {
    const { plot } = this.props
    console.log(plot)
    return (
      <div className="line-chart-edit-box" style={{minHeight: plot.height ? plot.height + 50 : 450}}>
        {plot.title ? <p className="chart-title">{plot.title}</p> : null}