diff --git a/ui/app/components/transit-key-actions.js b/ui/app/components/transit-key-actions.js index 64561dec7c16..7aaddeffb907 100644 --- a/ui/app/components/transit-key-actions.js +++ b/ui/app/components/transit-key-actions.js @@ -120,6 +120,7 @@ export default Component.extend(TRANSIT_PARAMS, { paramsToKeep.forEach(param => delete params[param]); } //resets params still left in the object to defaults + this.clearErrors(); this.setProperties(params); if (action === 'export') { this.setExportKeyDefaults(); @@ -130,6 +131,10 @@ export default Component.extend(TRANSIT_PARAMS, { this.set('errors', e.errors); }, + clearErrors() { + this.set('errors', null); + }, + handleSuccess(resp, options, action) { let props = {}; if (resp && resp.data) {