fix job templates deletion on edit

This commit is contained in:
John Mitchell 2016-06-14 14:16:18 -04:00
parent 1a0266fc54
commit 58f322ec0b

View File

@ -77,7 +77,7 @@ export default
Rest.setUrl(url);
Rest.destroy()
.success(function () {
if (parseInt($state.params.template_id) === id) {
if (parseInt($state.params.id) === id) {
$state.go("^", null, {reload: true});
} else {
$scope.search(list.iterator);