mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed frontend crashing when database is empty
This commit is contained in:
@ -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 + ')');
|
||||
}
|
||||
|
Reference in New Issue
Block a user