From 01f247c9a0b0ae2960e5fbb084bad83aca7cbd51 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Mon, 22 Dec 2025 19:35:10 +0100 Subject: [PATCH] chore: small code style changes --- app/client/components/file-tree.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/components/file-tree.tsx b/app/client/components/file-tree.tsx index 4b987341..7789c821 100644 --- a/app/client/components/file-tree.tsx +++ b/app/client/components/file-tree.tsx @@ -459,7 +459,7 @@ const File = memo(({ file, onFileSelect, selected, withCheckbox, checked, onChec e.stopPropagation()} /> )} {name} - {size != null && ( + {typeof size === "number" && ( @@ -532,7 +532,7 @@ function buildFileList(files: FileEntry[], foldersOnly = false): Node[] { name, fullPath: file.path, depth, - ...(isFile && file.size != null ? { size: file.size } : {}), + size: file.size, }); } }