rongmz 5 years ago
parent
commit
d3f924dab1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/index.js

+ 1 - 1
src/index.js

@@ -15,7 +15,7 @@ export default class StockHeatmap extends React.Component {
   shouldComponentUpdate(nextProps, nextState) {
   shouldComponentUpdate(nextProps, nextState) {
     const shouldUpdate = this.props.width !== nextProps.width
     const shouldUpdate = this.props.width !== nextProps.width
       || this.props.height !== nextProps.height;
       || this.props.height !== nextProps.height;
-    if (shouldUpdate) updateHeatmapDimensions();
+    if (shouldUpdate) this.updateHeatmapDimensions();
     return shouldUpdate;
     return shouldUpdate;
   }
   }