fix: 🐛 Sort workers when filtering is enabled as well (#1352)
This commit is contained in:
1 parent
3fc22b4aa3
commit
3deec2ed50
1 file changed
+2
-2
@@ -38,7 +38,7 @@ export default class ScopesScopeWorkersIndexRoute extends Route {
|
||||
// =methods
|
||||
|
||||
model() {
|
||||
const workers = this.modelFor('scopes.scope.workers');
|
||||
const workers = this.modelFor('scopes.scope.workers').sortBy('displayName');
|
||||
|
||||
if (this.tags?.length) {
|
||||
// Return workers that have config tags that have at
|
||||
@@ -57,7 +57,7 @@ export default class ScopesScopeWorkersIndexRoute extends Route {
|
||||
);
|
||||
});
|
||||
}
|
||||
return workers.sortBy('displayName');
|
||||
return workers;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user