forked from p15670423/monkey
ui: pass callback, not return value, to setState()
This commit is contained in:
parent
f82d4a1b97
commit
88e2ccb30a
|
@ -182,7 +182,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
|
|
||||||
attemptConfigSubmit() {
|
attemptConfigSubmit() {
|
||||||
this.updateConfigSection();
|
this.updateConfigSection();
|
||||||
this.setState({lastAction: 'submit_attempt'}, this.configSubmit());
|
this.setState({lastAction: 'submit_attempt'}, this.configSubmit);
|
||||||
}
|
}
|
||||||
|
|
||||||
configSubmit() {
|
configSubmit() {
|
||||||
|
|
Loading…
Reference in New Issue