From 28b0dc8c086bb93bcd908b649ce477e55db2057b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 23 Mar 2022 09:47:05 +0100 Subject: [PATCH] Fixing table header ordering in table view (#2564) --- webapp/src/components/table/tableRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/table/tableRow.tsx b/webapp/src/components/table/tableRow.tsx index 20c2b846b..b57af67eb 100644 --- a/webapp/src/components/table/tableRow.tsx +++ b/webapp/src/components/table/tableRow.tsx @@ -80,7 +80,7 @@ const TableRow = (props: Props) => { }, [title, setTitle]) const visiblePropertyTemplates = useMemo(() => ( - board.cardProperties.filter((template: IPropertyTemplate) => visiblePropertyIds.includes(template.id)) + visiblePropertyIds.map((id) => board.cardProperties.find((t) => t.id === id)).filter((i) => i) as IPropertyTemplate[] ), [board.cardProperties, visiblePropertyIds]) let className = props.isSelected ? 'TableRow octo-table-row selected' : 'TableRow octo-table-row'