Make sure file list files config always exists
Initialize files config with defaults in case none was passed
This commit is contained in:
parent
af515a615d
commit
006e9e8b42
|
@ -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