Import made compatible with attack config
This commit is contained in:
parent
9f0e3c8513
commit
0284eeebe8
|
@ -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