Skip to content

Commit 2cfb6f1

Browse files
authored
Merge pull request #2190 from cardstack/patch-seed-crm-app
Update sort on seed crm app
2 parents 98e8b21 + ec914cf commit 2cfb6f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/seed-realm/components/sort.gts

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ export class SortMenu extends GlimmerComponent<SortMenuSignature> {
113113
return new MenuItem(option.displayName, 'action', {
114114
action: () => this.args.onSort(option),
115115
icon: option.sort?.[0].direction === 'desc' ? ArrowDown : ArrowUp,
116-
selected: option.displayName === this.args.selected.displayName,
116+
selected:
117+
option.displayName === this.args.selected.displayName &&
118+
option.sort?.[0].direction === this.args.selected.sort?.[0].direction,
117119
});
118120
});
119121
}

0 commit comments

Comments
 (0)