Skip to content

Commit

Permalink
always clear original secret with current secret
Browse files Browse the repository at this point in the history
the new confirmation dialog appeared at very unexpected times
-
Ticket: SUITEDEV-29114
  • Loading branch information
hawser86 committed Oct 29, 2021
1 parent 83b1ef1 commit f650259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export default {
notificationDisplayer.backupSuccess();
},
clearSecret() {
this.originalSecret = {};
this.secret = [];
this.secretLoaded = false;
},
Expand Down Expand Up @@ -180,7 +181,6 @@ export default {
await this.loadBackups();
} catch (e) {
notificationDisplayer.loadFailed(e.message);
this.originalSecret = {};
this.clearSecret();
logger.warn('load-failed', { namespace: this.secretNamespace, name: this.secretName }, e);
}
Expand Down

0 comments on commit f650259

Please sign in to comment.