From 461fa9a1da784a0c93ed54470def1a622484e685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Herbinet?= <33763786+Jerome-Herbinet@users.noreply.github.com> Date: Wed, 19 Apr 2023 16:15:17 +0200 Subject: [PATCH] Following Artonge suggestion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com> --- core/src/OC/dialogs.js | 5 ++--- 1 file 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('.') }) }