Skip to content

Commit

Permalink
update debounce seq
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Aug 7, 2023
1 parent 2e2d5f5 commit 87dfa52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Chart extends React.Component {
this.exportXLSX = this.exportXLSX.bind(this);
this.exportFullXLSX = this.exportFullXLSX.bind(this);
this.forceRefresh = this.forceRefresh.bind(this);
this.resize = debounce(this.resize, RESIZE_TIMEOUT).bind(this);
this.resize = debounce(this.resize.bind(this), RESIZE_TIMEOUT);
this.setDescriptionRef = this.setDescriptionRef.bind(this);
this.setHeaderRef = this.setHeaderRef.bind(this);
this.getChartHeight = this.getChartHeight.bind(this);
Expand Down Expand Up @@ -222,7 +222,7 @@ class Chart extends React.Component {
}

componentWillUnmount() {
this.resize.cancel?.();
this.resize.cancel();
}

componentDidUpdate(prevProps) {
Expand Down

0 comments on commit 87dfa52

Please sign in to comment.