Skip to content

Commit

Permalink
ui: fiz size chart when first load
Browse files Browse the repository at this point in the history
Previously, the chart sizes were being properly
updated when resized, but the initial value was not
correct.
This commit adds the call to handle resize so it
can load the correct size on first load.

Fix #91207

Release note: None
  • Loading branch information
maryliag committed Nov 3, 2022
1 parent 52d7d65 commit 2a890cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export class StatementDetails extends React.Component<
}

componentDidUpdate(prevProps: StatementDetailsProps): void {
this.handleResize();
if (
prevProps.timeScale != this.props.timeScale ||
prevProps.statementFingerprintID != this.props.statementFingerprintID ||
Expand Down

0 comments on commit 2a890cf

Please sign in to comment.