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, }); } }