This commit is contained in:
Mo Bitar
2017-01-31 00:54:22 -06:00
parent c93eba279d
commit fd44b694b0
4 changed files with 11 additions and 6 deletions

View File

@@ -107,7 +107,9 @@ angular.module('app.frontend')
$scope.didShowErrorAlert = true;
alert("There was an error saving your note. Please try again.");
}
callback(false);
if(callback) {
callback(false);
}
} else {
note.hasChanges = false;
if(callback) {