diff --git a/src/app/components/table/index.tsx b/src/app/components/table/index.tsx index bd1cbe10a..4599e81a0 100644 --- a/src/app/components/table/index.tsx +++ b/src/app/components/table/index.tsx @@ -10,7 +10,6 @@ const CollapseElement = ` { - if (level === 0) { - setExpandedCount((prev) => prev + 1); - } - }); - table.on("dataTreeRowCollapsed", (_, level) => { - if (level === 0) { - setExpandedCount((prev) => prev - 1); - } - }); table.on("tableBuilt", () => { tableBuiltRef.current = true; }); @@ -76,25 +65,6 @@ export const Table: React.FC = (props: TableProps) => { } }, [props.data, tableBuiltRef.current]); - React.useEffect(() => { - if (ref.current) { - const tables = Tabulator.findTable(`#${props.id}`); - if (tables.length > 0 && tables[0]) { - if ( - expandedCount > 0 && - props.extraColumns && - props.extraColumns.length > 0 - ) { - tables[0].setColumns(props.columns.concat(props.extraColumns)); - } else { - setTimeout(() => { - tables[0].setColumns(props.columns); - }, 1); - } - } - } - }, [expandedCount, props.columns, props.extraColumns]); - return (