From a1cc540e1ac1eb15c3ca7a45fd40947221f325e8 Mon Sep 17 00:00:00 2001 From: Julia Rechkunova Date: Fri, 25 Oct 2024 15:30:30 +0200 Subject: [PATCH] [Discover][UnifiedDataTable] Enable drag&drop for grid columns --- packages/kbn-unified-data-table/src/components/data_table.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/kbn-unified-data-table/src/components/data_table.tsx b/packages/kbn-unified-data-table/src/components/data_table.tsx index 662c8526dd567..9ee6b2261bd4e 100644 --- a/packages/kbn-unified-data-table/src/components/data_table.tsx +++ b/packages/kbn-unified-data-table/src/components/data_table.tsx @@ -870,6 +870,7 @@ export const UnifiedDataTable = ({ const schemaDetectors = useMemo(() => getSchemaDetectors(), []); const columnsVisibility = useMemo( () => ({ + canDragAndDropColumns: true, visibleColumns, setVisibleColumns: (newColumns: string[]) => { const dontModifyColumns = !shouldPrependTimeFieldColumn(newColumns);