Following Artonge suggestion

Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
This commit is contained in:
Jérôme Herbinet 2023-04-19 16:15:17 +02:00 committed by GitHub
parent 1f67183fe3
commit 461fa9a1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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('.')
})
}