Skip to content

Commit 7d9a1a6

Browse files
authored
Merge pull request #2305 from bcgov/bugfix/ALCS-2652-make-sure-the-conditions-are-ordered
ALCS-2652 Fix card order
2 parents d5a26ff + 264e648 commit 7d9a1a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

alcs-frontend/src/app/features/board/dialogs/application-decision-condition-dialog/application-decision-condition-dialog.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ export class ApplicationDecisionConditionDialogComponent extends CardDialogCompo
113113
condition,
114114
index: index + 1,
115115
selected: this.isConditionSelected(condition),
116-
}));
117-
116+
}))
117+
.sort((a, b) => {
118+
return a.condition.order - b.condition.order
119+
});
118120
this.dataSource.data = data;
119121
}
120122

0 commit comments

Comments
 (0)