Fixed frontend crashing when database is empty

This commit is contained in:
Marcin Kurczewski
2014-10-10 18:13:46 +02:00
parent d2695e635c
commit 0811968718
23 changed files with 102 additions and 40 deletions

View File

@ -20,7 +20,7 @@ App.Promise = function(_, jQuery) {
active.push(promise.promiseId);
promise.then(function() {
promise.always(function() {
if (!_.contains(active, promise.promiseId)) {
throw new Error('Broken promise (promise ID: ' + promise.promiseId + ')');
}