forked from p15670423/monkey
Merge pull request #334 from VakarisZ/import_bugfix
Import made compatible with attack config
This commit is contained in:
commit
9021463cd2
|
@ -299,9 +299,8 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
try {
|
try {
|
||||||
this.setState({
|
this.setState({
|
||||||
configuration: JSON.parse(event.target.result),
|
configuration: JSON.parse(event.target.result),
|
||||||
selectedSection: 'basic',
|
|
||||||
lastAction: 'import_success'
|
lastAction: 'import_success'
|
||||||
}, () => {this.sendConfig()});
|
}, () => {this.sendConfig(); this.setInitialConfig(JSON.parse(event.target.result))});
|
||||||
this.currentSection = 'basic';
|
this.currentSection = 'basic';
|
||||||
this.currentFormData = {};
|
this.currentFormData = {};
|
||||||
} catch(SyntaxError) {
|
} catch(SyntaxError) {
|
||||||
|
|
Loading…
Reference in New Issue