Fix NaN height issue

This commit is contained in:
Laurent Nguyen
2024-02-29 13:51:03 +01:00
parent 82c7760af2
commit 5d970d4c1f
2 changed files with 4 additions and 11 deletions

View File

@@ -235,7 +235,7 @@ export const DocumentsTableComponent: React.FC<IDocumentsTableComponentProps> =
</TableHeader>
<TableBody style={{ height: "100%", flex: 1 }}>
<List
height={height - 32}
height={height !== undefined ? height - 32 : 0}
itemCount={items.length}
itemSize={45}
width="100%"