From f49390ad01ce75c075862eaf28c01a2b798ee7d3 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 6 Jan 2026 10:31:58 -0500 Subject: [PATCH] feat(client): migrate WorkCenterFilterPanel to API clients --- .../FilterPanels/WorkCenterFilterPanel.razor | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/NEW/src/JdeScoping.Client/Components/FilterPanels/WorkCenterFilterPanel.razor b/NEW/src/JdeScoping.Client/Components/FilterPanels/WorkCenterFilterPanel.razor index 5e2c0be..ca0bfd4 100644 --- a/NEW/src/JdeScoping.Client/Components/FilterPanels/WorkCenterFilterPanel.razor +++ b/NEW/src/JdeScoping.Client/Components/FilterPanels/WorkCenterFilterPanel.razor @@ -1,5 +1,6 @@ @* Work 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.FindWorkCentersAsync(args.Filter); + var result = await LookupApi.FindWorkCentersAsync(args.Filter); + result.Switch( + workCenters => { _searchResults = workCenters.ToList(); }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; }, + _ => { _searchResults = []; } + ); } else {