From 3a2ba2b5623019353b6402c083aea75d4113c0cc Mon Sep 17 00:00:00 2001 From: Felipe Barreta Date: Wed, 6 Nov 2024 10:36:16 -0800 Subject: [PATCH] ALCS-1874 Refresh tags params correctly --- .../notification-search-table.component.ts | 10 +++++----- .../src/app/features/search/search.component.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/alcs-frontend/src/app/features/search/notification-search-table/notification-search-table.component.ts b/alcs-frontend/src/app/features/search/notification-search-table/notification-search-table.component.ts index 4fed3c4ca3..040428f3f2 100644 --- a/alcs-frontend/src/app/features/search/notification-search-table/notification-search-table.component.ts +++ b/alcs-frontend/src/app/features/search/notification-search-table/notification-search-table.component.ts @@ -98,11 +98,11 @@ export class NotificationSearchTableComponent { board: e.boardCode, class: e.class, status: { - backgroundColor: status!.alcsBackgroundColor, - textColor: status!.alcsColor, - borderColor: status!.alcsBackgroundColor, - label: status!.label, - shortLabel: status!.label, + backgroundColor: status ? status!.alcsBackgroundColor : '', + textColor: status ? status!.alcsColor : '', + borderColor: status ? status!.alcsBackgroundColor : '', + label: status ? status!.label : '', + shortLabel: status ? status!.label : '', }, }; }); diff --git a/alcs-frontend/src/app/features/search/search.component.ts b/alcs-frontend/src/app/features/search/search.component.ts index 36a95c5507..da6f2e0a0e 100644 --- a/alcs-frontend/src/app/features/search/search.component.ts +++ b/alcs-frontend/src/app/features/search/search.component.ts @@ -336,7 +336,7 @@ export class SearchComponent implements OnInit, OnDestroy { : undefined, fileTypes: fileTypes, tagCategoryId: this.searchForm.controls.tagCategory.value ?? undefined, - tagIds: this.searchForm.controls.tag.value ?? undefined, + tagIds: this.tags.map((t) => t.uuid), }; }