X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/52dd0ffeffa30667e7f66ca2f5f9ff2b3dfe8f7a..838af71bfe460c7f5a03121acf8a4d239893cdac:/src/components/data-explorer/data-explorer.tsx diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index 681caa94..af14db9c 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -51,6 +51,7 @@ interface DataExplorerDataProps { } interface DataExplorerActionProps { + onSetColumns: (columns: DataColumns) => void; onSearch: (value: string) => void; onRowClick: (item: T) => void; onRowDoubleClick: (item: T) => void; @@ -67,6 +68,11 @@ type DataExplorerProps = DataExplorerDataProps & DataExplorerActionProps extends React.Component> { + componentDidMount() { + if (this.props.onSetColumns) { + this.props.onSetColumns(this.props.columns); + } + } render() { const { columns, onContextMenu, onFiltersChange, onSortToggle, extractKey,