summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-08-22 09:45:21 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-29 14:44:25 +0200
commit29b45c5c426d390ed2f90720b6c987883708ba2e (patch)
tree5071faea3a2a40806405acb010c35a6c25bd1971 /apps/files/js
parent3647fbe7cd86e743b059889d69b03fcf8207780f (diff)
downloadnextcloud-server-29b45c5c426d390ed2f90720b6c987883708ba2e.tar.gz
nextcloud-server-29b45c5c426d390ed2f90720b6c987883708ba2e.zip
Make sure file list files config always exists
Initialize files config with defaults in case none was passed
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 4 insertions, 0 deletions
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) {