Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshll committed Mar 19, 2018
1 parent 28b0073 commit ceb2880
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/table/src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2066,9 +2066,8 @@ export class Table extends AbstractComponent<ITableProps, ITableState> {
}

private updateViewportRect = (nextViewportRect: Rect) => {
this.setState({ viewportRect: nextViewportRect });

const { viewportRect } = this.state;
this.setState({ viewportRect: nextViewportRect });

const didViewportChange =
(viewportRect != null && !viewportRect.equals(nextViewportRect)) ||
Expand Down

0 comments on commit ceb2880

Please sign in to comment.