1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-04-11 11:19:56 +02:00

Fixing table header ordering in table view (#2564)

This commit is contained in:
Jesús Espino 2022-03-23 09:47:05 +01:00 committed by GitHub
parent 001fc97dd1
commit 28b0dc8c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'