From 29b45c5c426d390ed2f90720b6c987883708ba2e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 22 Aug 2016 09:45:21 +0200 Subject: [PATCH] Make sure file list files config always exists Initialize files config with defaults in case none was passed --- apps/files/js/filelist.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f191ade240b..e11f828b7c6 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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) { -- 2.39.5