refactor(web): clarify static table body rows

This commit is contained in:
QuentinHsu
2026-06-10 08:40:55 +08:00
parent d64e09bb19
commit 4835abfda8
@@ -72,7 +72,7 @@ export function StaticDataTable<TData = unknown>({
containerProps,
tableProps,
}: StaticDataTableProps<TData>) {
const rows = data
const bodyRows = data
? renderStaticDataRows({
data,
columns,
@@ -103,12 +103,12 @@ export function StaticDataTable<TData = unknown>({
{emptyContent}
</StaticDataTableEmptyRow>
) : (
rows
bodyRows
)}
</TableBody>
</>
) : (
rows
bodyRows
)
return (