From ef28de3e5d68b5bb9cf46298f55d6d7ad8dc8c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 4 Dec 2023 22:47:15 +0100 Subject: [PATCH] fix: Also filter out undefined entries from the file list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/src/views/FilesList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index f1d2cf4203538..851eb41ea78c3 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -280,10 +280,10 @@ export default Vue.extend({ .map(this.getNode) .filter(file => { if (!showHidden) { - return file?.attributes?.hidden !== true && !file?.basename.startsWith('.') + return file && file?.attributes?.hidden !== true && !file?.basename.startsWith('.') } - return true + return !!file }) },