rongmz 5 anni fa
parent
commit
d3f924dab1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {
     const shouldUpdate = this.props.width !== nextProps.width
       || this.props.height !== nextProps.height;
-    if (shouldUpdate) updateHeatmapDimensions();
+    if (shouldUpdate) this.updateHeatmapDimensions();
     return shouldUpdate;
   }