Skip to content

Commit

Permalink
Merge pull request #1157 from nextcloud/stable9.1-init-filesconfig
Browse files Browse the repository at this point in the history
Make sure file list files config always exists
  • Loading branch information
LukasReschke authored Aug 29, 2016
2 parents deadbf7 + 006e9e8 commit 0a1b1d5
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 0a1b1d5

Please sign in to comment.