Import made compatible with attack config

This commit is contained in:
VakarisZ 2019-05-30 17:02:30 +03:00
parent 9f0e3c8513
commit 0284eeebe8
1 changed files with 1 additions and 2 deletions

View File

@ -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) {