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 10, 2022
1 parent 36052be commit 03d8088
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,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 03d8088

Please sign in to comment.