summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>2023-04-19 16:15:17 +0200
committerGitHub <noreply@github.com>2023-04-19 16:15:17 +0200
commit461fa9a1da784a0c93ed54470def1a622484e685 (patch)
treeb888dbe0ffab168888a4cf0532c56852b063ce81 /core
parent1f67183fe3a098f913b2dfd56d3bbe2ff0b71ec7 (diff)
downloadnextcloud-server-461fa9a1da784a0c93ed54470def1a622484e685.tar.gz
nextcloud-server-461fa9a1da784a0c93ed54470def1a622484e685.zip
Following Artonge suggestion
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
Diffstat (limited to 'core')
-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('.')
})
}