mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Addresses PR issues
This commit is contained in:
@@ -41,8 +41,10 @@ class Organization extends Component {
|
||||
}
|
||||
|
||||
async componentDidUpdate(prevProps) {
|
||||
const { location } = this.props;
|
||||
if (location !== prevProps.location) {
|
||||
const { location, match } = this.props;
|
||||
const url = `/organizations/${match.params.id}/`;
|
||||
const shouldUpdate = prevProps.location.pathname.includes(url);
|
||||
if (location !== prevProps.location && shouldUpdate) {
|
||||
await this.loadOrganization();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user