From ccc1e80d0daed2e613ff91b4d3a2922e80f1782f Mon Sep 17 00:00:00 2001 From: Rahul K R Date: Tue, 20 Aug 2024 14:09:05 +0530 Subject: [PATCH 1/2] bug fix : 1668 --- .../components/search-and-select/search-and-select.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/components/search-and-select/search-and-select.component.ts b/src/app/shared/components/search-and-select/search-and-select.component.ts index 1b42eb6b..f587d752 100644 --- a/src/app/shared/components/search-and-select/search-and-select.component.ts +++ b/src/app/shared/components/search-and-select/search-and-select.component.ts @@ -75,7 +75,7 @@ export class SearchAndSelectComponent implements OnInit, ControlValueAccessor { handleCloseIconClick(event: Event, removedItem): void { if (this.selectedData) { this.selectedData = this.selectedData.filter(obj => obj.value !== removedItem.value || obj.id !== removedItem.id ); - this.onChange(this.selectedData) + this.onChange(this.selectedData.map(data => data.value)) event.stopPropagation() } } From af49881ff425d0fb6f714414cb6b5f2542fa5ea9 Mon Sep 17 00:00:00 2001 From: Rahul K R Date: Tue, 20 Aug 2024 14:09:56 +0530 Subject: [PATCH 2/2] bug fix 1682 --- .../components/search-popover/search-popover.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/components/search-popover/search-popover.component.ts b/src/app/shared/components/search-popover/search-popover.component.ts index c391889b..5ff35301 100644 --- a/src/app/shared/components/search-popover/search-popover.component.ts +++ b/src/app/shared/components/search-popover/search-popover.component.ts @@ -127,7 +127,7 @@ export class SearchPopoverComponent implements OnInit { return data.result.data } catch (error) { - return null; + return error; } }