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 3647fbe7cd
commit 29b45c5c42
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,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) {