mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move function calls w/ side-effects to componentDidMount
* loadStore() modified the url which triggered a new render path, this gets noticed by react. Moved to componentDidMount.
This commit is contained in:
parent
cc5d7002b0
commit
0695e431ea
@ -16,6 +16,9 @@ export class FolderPermissions extends Component<IContainerProps, any> {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.handleAddPermission = this.handleAddPermission.bind(this);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.loadStore();
|
||||
}
|
||||
|
||||
|
@ -12,8 +12,7 @@ import appEvents from 'app/core/app_events';
|
||||
export class FolderSettings extends React.Component<IContainerProps, any> {
|
||||
formSnapshot: any;
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
componentDidMount() {
|
||||
this.loadStore();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user