Skip to content

Commit

Permalink
[YW] Refreshing on the Edit Universe page does not load AZSelectorTable
Browse files Browse the repository at this point in the history
#3291

Summary:
Add additional check for specific Create case these lines needed for
and wipe out legacy code

Test Plan: open universe form in Edit mode, check AZconfig is being loaded

Reviewers: ram, andrew

Reviewed By: andrew

Subscribers: ui

Differential Revision: https://phabricator.dev.yugabyte.com/D7775
  • Loading branch information
vitpankin committed Jan 8, 2020
1 parent 959b15b commit 0a50ddd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ class UniverseForm extends Component {
}

componentDidMount() {
this.props.resetConfig();
this.setState({editNotAllowed: true});
if (this.props.type === "Create") {
this.props.resetConfig();
}
}

componentWillUnmount() {
Expand Down

0 comments on commit 0a50ddd

Please sign in to comment.