FIX: prevents exception when loading old dashboard (#6196)

This commit is contained in:
Joffrey JAFFEUX 2018-07-27 16:29:30 -04:00 committed by GitHub
parent 3159c46613
commit a8f1b07686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ AdminDashboard.reopenClass({
@return {jqXHR} a jQuery Promise object @return {jqXHR} a jQuery Promise object
**/ **/
find: function() { find: function() {
return ajax("/admin/dashboard.json").then(function(json) { return ajax("/admin/dashboard-old.json").then(function(json) {
var model = AdminDashboard.create(json); var model = AdminDashboard.create(json);
model.set("loaded", true); model.set("loaded", true);
return model; return model;