Make sure file list files config always exists
Initialize files config with defaults in case none was passed
This commit is contained in:
parent
3647fbe7cd
commit
29b45c5c42
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue