Merge pull request #1157 from nextcloud/stable9.1-init-filesconfig
Make sure file list files config always exists
This commit is contained in:
commit
0a1b1d57a7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue