Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix: verify regex before saving the api
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani authored and brasseld committed Sep 23, 2019
1 parent 6f45999 commit 8c6947c
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -34,7 +34,8 @@ class ApiPathMappingsController {
private NotificationService: NotificationService,
private $scope,
private $rootScope,
DocumentationService: DocumentationService
DocumentationService: DocumentationService,
private $state
) {
'ngInject';
this.api = this.$scope.$parent.apiCtrl.api;
Expand All @@ -53,6 +54,8 @@ class ApiPathMappingsController {
update() {
this.ApiService.update(this.api).then((updatedApi) => {
this.onSave(updatedApi);
}, () => {
this.$state.reload();
});
}

Expand Down

0 comments on commit 8c6947c

Please sign in to comment.