From 3deec2ed502db3443a2fe512630c339e5009f4c4 Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Tue, 27 Sep 2022 09:15:42 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Sort=20workers=20when=20f?= =?UTF-8?q?iltering=20is=20enabled=20as=20well=20(#1352)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/app/routes/scopes/scope/workers/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/admin/app/routes/scopes/scope/workers/index.js b/ui/admin/app/routes/scopes/scope/workers/index.js index b022810ce..a95037ddd 100644 --- a/ui/admin/app/routes/scopes/scope/workers/index.js +++ b/ui/admin/app/routes/scopes/scope/workers/index.js @@ -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; } /**