aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC/dialogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/dialogs.js')
-rw-r--r--core/src/OC/dialogs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 45e9e99049d..9aedb87d53d 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -1172,9 +1172,8 @@ const Dialogs = {
// Check if the showHidden input field exist and if it exist follow it
// Otherwise just show the hidden files
const showHiddenInput = document.getElementById('showHiddenFiles')
- const showHidden = showHiddenInput === null || showHiddenInput.value === "1"
- if (!showHidden) {
- files = files.filter(function(file) {
+ if (showHiddenInput?.value !== "1") {
+ files = files.filter(function (file) {
return !file.name.startsWith('.')
})
}