Skip to content

Commit

Permalink
fix: close create form modal when create form fails (#824)
Browse files Browse the repository at this point in the history
can be triggered by duplicate or create form backend failure
  • Loading branch information
karrui authored Dec 9, 2020
1 parent f6a91e2 commit a3a4bed
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ function CreateFormModalController(
Toastr.error(errorResponse.data.message)
}
GTag.createFormFailed()

vm.closeCreateModal()
}

vm.createNewForm = function () {
Expand Down

0 comments on commit a3a4bed

Please sign in to comment.