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