From ee6afc9e4e3c95dbf5f0672087ba65bfd4568406 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 6 Jan 2026 10:32:25 -0500 Subject: [PATCH] feat(client): migrate ProfitCenterFilterPanel to API clients --- .../FilterPanels/ProfitCenterFilterPanel.razor | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/NEW/src/JdeScoping.Client/Components/FilterPanels/ProfitCenterFilterPanel.razor b/NEW/src/JdeScoping.Client/Components/FilterPanels/ProfitCenterFilterPanel.razor index 176c7f0..2b91053 100644 --- a/NEW/src/JdeScoping.Client/Components/FilterPanels/ProfitCenterFilterPanel.razor +++ b/NEW/src/JdeScoping.Client/Components/FilterPanels/ProfitCenterFilterPanel.razor @@ -1,5 +1,6 @@ @* Profit center filter panel with autocomplete and grid *@ -@inject ILookupService LookupService +@using JdeScoping.Core.ApiContracts +@inject ILookupApiClient LookupApi @inject DialogService DialogService @@ -62,7 +63,15 @@ { if (!string.IsNullOrEmpty(args.Filter) && args.Filter.Length >= 3) { - _searchResults = await LookupService.FindProfitCentersAsync(args.Filter); + var result = await LookupApi.FindProfitCentersAsync(args.Filter); + result.Switch( + profitCenters => { _searchResults = profitCenters.ToList(); }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; } + ); } else {