From 203940e26d8802723185a6c9137b131ec46e8461 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Tue, 23 Nov 2021 17:57:35 -0500 Subject: [PATCH] fix: filter callbacks use different param --- ui/app/controllers/jobs/job/allocations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/controllers/jobs/job/allocations.js b/ui/app/controllers/jobs/job/allocations.js index d8e63f201..930bb85cc 100644 --- a/ui/app/controllers/jobs/job/allocations.js +++ b/ui/app/controllers/jobs/job/allocations.js @@ -65,7 +65,7 @@ export default class AllocationsController extends Controller.extend( if (!allocations.length) return allocations; return allocations.filter(alloc => { - if (selectionStatus.length && !selectionStatus.includes(alloc.status)) { + if (selectionStatus.length && !selectionStatus.includes(alloc.clientStatus)) { return false; } if (selectionClient.length && !selectionClient.includes(alloc.get('node.shortId'))) { @@ -113,7 +113,7 @@ export default class AllocationsController extends Controller.extend( this.set('qpClient', serialize(intersection(clients, this.selectionClient))); }); - return clients.sort().map(dc => ({ key: dc, label: dc })); + return clients.sort().map(c => ({ key: c, label: c })); } @computed('model.allocations.[]', 'selectionTaskGroup') @@ -126,7 +126,7 @@ export default class AllocationsController extends Controller.extend( this.set('qpTaskGroup', serialize(intersection(taskGroups, this.selectionTaskGroup))); }); - return taskGroups.sort().map(dc => ({ key: dc, label: dc })); + return taskGroups.sort().map(tg => ({ key: tg, label: tg })); } setFacetQueryParam(queryParam, selection) {