Merge pull request #1146 from nextcloud/init-filesconfig

Make sure file list files config always exists
This commit is contained in:
Roeland Jago Douma 2016-08-29 20:35:56 +02:00 committed by GitHub
commit 606fd77432
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) {