Skip to content

Commit

Permalink
Make sure file list files config always exists
Browse files Browse the repository at this point in the history
Initialize files config with defaults in case none was passed
  • Loading branch information
Vincent Petry authored and LukasReschke committed Aug 29, 2016
1 parent af515a6 commit 006e9e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 006e9e8

Please sign in to comment.