From 833f0d889c50be1c0344c95c4b6632f0758aa83b Mon Sep 17 00:00:00 2001 From: Ruben van Leeuwen Date: Mon, 2 Dec 2024 10:36:15 +0100 Subject: [PATCH] 1544: dont add draghandler at last column --- .../WfoTable/WfoTable/WfoTableHeaderRow.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx b/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx index 82d47c209..400283e97 100644 --- a/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx +++ b/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx @@ -50,7 +50,7 @@ export const WfoTableHeaderRow = ({ const headerRowRef = useRef(null); return ( - {sortedVisibleColumns.map(([fieldName, columnConfig]) => { + {sortedVisibleColumns.map(([fieldName, columnConfig], index) => { const dataSortingConfiguration = dataSorting.find( (dataSorting) => dataSorting.field === fieldName, ); @@ -103,13 +103,17 @@ export const WfoTableHeaderRow = ({ > {columnConfig.label?.toString()} - {onUpdateColumWidth && ( - - )} + {onUpdateColumWidth && + index !== + sortedVisibleColumns.length - 1 && ( + + )} );