diff options
author | Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com> | 2023-04-19 16:15:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 16:15:17 +0200 |
commit | 461fa9a1da784a0c93ed54470def1a622484e685 (patch) | |
tree | b888dbe0ffab168888a4cf0532c56852b063ce81 /core | |
parent | 1f67183fe3a098f913b2dfd56d3bbe2ff0b71ec7 (diff) | |
download | nextcloud-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.js | 5 |
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('.') }) } |