Merge pull request #334 from VakarisZ/import_bugfix

Import made compatible with attack config
This commit is contained in:
Itay Mizeretz 2019-06-02 12:54:56 +03:00 committed by GitHub
commit 9021463cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {