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