Skip to content

Commit

Permalink
calculation column order to be based on view (#2262) (#2304)
Browse files Browse the repository at this point in the history
(cherry picked from commit 73420bc)

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
  • Loading branch information
mattermost-build and sbishel authored Feb 9, 2022
1 parent dacf0b2 commit 57071c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/table/calculation/calculationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 || []
Expand Down

0 comments on commit 57071c0

Please sign in to comment.