Skip to content

Commit a45fb92

Browse files
author
dularion
committed
fix settings validation error display
1 parent 0e76852 commit a45fb92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grails-app/assets/javascripts/streama/controllers/settings-settings-ctrl.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ angular.module('streama').controller('settingsSettingsCtrl',
3636
alertify.success(data.message || 'validation successful');
3737
settings.valid = true;
3838
$scope.loading = false;
39-
}, function (data) {
39+
}, function (response) {
40+
var data = response.data;
4041
alertify.error(data.message);
4142
settings.invalid = true;
4243
$scope.loading = false;

0 commit comments

Comments
 (0)