chore: show llm code with common component
This commit is contained in:
@@ -27,7 +27,7 @@ const TableRow: React.FC<
|
||||
rowIndex,
|
||||
expandable,
|
||||
rowSelection,
|
||||
expandedRowKeys,
|
||||
expandedRowKeys = [],
|
||||
rowKey,
|
||||
childParentKey,
|
||||
columns,
|
||||
@@ -80,6 +80,12 @@ const TableRow: React.FC<
|
||||
return rowSelection?.selectedRowKeys?.includes(record[rowKey]);
|
||||
}, [rowSelection?.selectedRowKeys, record, rowKey]);
|
||||
|
||||
useEffect(() => {
|
||||
if (expandedRowKeys?.length === 0) {
|
||||
setCurrentExpand(false);
|
||||
}
|
||||
}, [expandedRowKeys.length]);
|
||||
|
||||
const renderChildrenData = () => {
|
||||
if (childrenData.length === 0) {
|
||||
// return (
|
||||
|
||||
Reference in New Issue
Block a user