mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Fix bug
This commit is contained in:
@@ -25,8 +25,10 @@ const Header = ({ children }: ITable) => {
|
||||
};
|
||||
|
||||
const Body = <T,>({ data, render }: ITableBody<T>) => {
|
||||
data!.length > 0 && (
|
||||
<StyledBody>{data?.map(render as CallbackMapFunc<T>)}</StyledBody>
|
||||
return (
|
||||
data!.length && (
|
||||
<StyledBody>{data?.map(render as CallbackMapFunc<T>)}</StyledBody>
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user