fix: 🐛 Sort workers when filtering is enabled as well (#1352)

This commit is contained in:
Zhihe Li authored and GitHub committed 2022-09-27 09:15:42 -04:00
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;
}
/**