forked from p34709852/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 {
|
||||
this.setState({
|
||||
configuration: JSON.parse(event.target.result),
|
||||
selectedSection: 'basic',
|
||||
lastAction: 'import_success'
|
||||
}, () => {this.sendConfig()});
|
||||
}, () => {this.sendConfig(); this.setInitialConfig(JSON.parse(event.target.result))});
|
||||
this.currentSection = 'basic';
|
||||
this.currentFormData = {};
|
||||
} catch(SyntaxError) {
|
||||
|
|
Loading…
Reference in New Issue