Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit de3be7b

Browse files
committed
fix: 3.16 dependant keys
1 parent 58a1a24 commit de3be7b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

addon/components/ui-sorter/component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ export default class UiSorter extends Component {
137137

138138
protected ruleSet: NativeArray<SortRule> = A([]);
139139

140-
@computed('ruleSet.[]', 'ruleSet.@each.{displayName,direction}')
141-
protected get description() {
142-
return this.createDescription(this.ruleSet);
143-
}
144-
145140
@computed(
146141
'records.[]',
147142
'ruleSet.[]',
@@ -151,6 +146,11 @@ export default class UiSorter extends Component {
151146
return isArray(this.records) ? sortArrayWithRules(this.records, this.ruleSet) : [];
152147
}
153148

149+
@computed('ruleSet', 'sortedRecords.[]')
150+
protected get description() {
151+
return this.createDescription(this.ruleSet);
152+
}
153+
154154
// eslint-disable-next-line ember/classic-decorator-hooks
155155
init() {
156156
super.init();

0 commit comments

Comments
 (0)