Commit 0695e431 by David Kaltschmidt

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.
parent cc5d7002
...@@ -16,6 +16,9 @@ export class FolderPermissions extends Component<IContainerProps, any> { ...@@ -16,6 +16,9 @@ export class FolderPermissions extends Component<IContainerProps, any> {
constructor(props) { constructor(props) {
super(props); super(props);
this.handleAddPermission = this.handleAddPermission.bind(this); this.handleAddPermission = this.handleAddPermission.bind(this);
}
componentDidMount() {
this.loadStore(); this.loadStore();
} }
......
...@@ -12,8 +12,7 @@ import appEvents from 'app/core/app_events'; ...@@ -12,8 +12,7 @@ import appEvents from 'app/core/app_events';
export class FolderSettings extends React.Component<IContainerProps, any> { export class FolderSettings extends React.Component<IContainerProps, any> {
formSnapshot: any; formSnapshot: any;
constructor(props) { componentDidMount() {
super(props);
this.loadStore(); this.loadStore();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment