Skip to content

Commit

Permalink
Merge pull request #334 from VakarisZ/import_bugfix
Browse files Browse the repository at this point in the history
Import made compatible with attack config
  • Loading branch information
itaymmguardicore authored Jun 2, 2019
2 parents 016b73c + 0284eee commit 9021463
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9021463

Please sign in to comment.