mirror of
https://github.com/getredash/redash.git
synced 2026-05-20 12:00:50 -04:00
Added handling of empty rearm settings
This commit is contained in:
@@ -96,11 +96,9 @@
|
||||
if ($scope.alert.name === undefined || $scope.alert.name === '') {
|
||||
$scope.alert.name = $scope.getDefaultName();
|
||||
}
|
||||
|
||||
if ($scope.alert.rearm === '' || $scope.alert.rearm === 0) {
|
||||
$scope.alert.rearm = null;
|
||||
}
|
||||
|
||||
$scope.alert.$save(function(alert) {
|
||||
growl.addSuccessMessage("Saved.");
|
||||
if ($scope.alertId === "new") {
|
||||
|
||||
Reference in New Issue
Block a user