Make sure file list files config always exists

Initialize files config with defaults in case none was passed
This commit is contained in:
Vincent Petry 2016-08-22 09:45:21 +02:00 committed by Lukas Reschke
parent af515a615d
commit 006e9e8b42
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@
this._filesConfig = options.config;
} else if (!_.isUndefined(OCA.Files) && !_.isUndefined(OCA.Files.App)) {
this._filesConfig = OCA.Files.App.getFilesConfig();
} else {
this._filesConfig = new OC.Backbone.Model({
'showhidden': false
});
}
if (options.dragOptions) {