1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-12 09:04:14 +02:00

calculation column order to be based on view (#2262)

This commit is contained in:
Scott Bishel 2022-02-09 08:31:58 -07:00 committed by GitHub
parent 10686f6b23
commit 73420bcf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ const CalculationRow = (props: Props): JSX.Element => {
const templates: IPropertyTemplate[] = [
titleTemplate,
...props.board.fields.cardProperties.filter((template) => props.activeView.fields.visiblePropertyIds.includes(template.id)),
...props.activeView.fields.visiblePropertyIds.map((id) => props.board.fields.cardProperties.find((t) => t.id === id)).filter((i) => i) as IPropertyTemplate[],
]
const selectedCalculations = props.board.fields.columnCalculations || []