diff --git a/frontend/src/lib/components/admin/PatchTestsManagement.svelte b/frontend/src/lib/components/admin/PatchTestsManagement.svelte index 31619ec..04204b5 100644 --- a/frontend/src/lib/components/admin/PatchTestsManagement.svelte +++ b/frontend/src/lib/components/admin/PatchTestsManagement.svelte @@ -53,7 +53,12 @@ import { Button } from '$lib/components/ui/button'; if (ptRes.ok && svcRes.ok) { patchTests = await ptRes.json(); - availableServices = await svcRes.json(); + const svcData = await svcRes.json(); + const uniqueSvc = new Map(); + svcData.forEach((s: Service) => { + if (s.id) uniqueSvc.set(s.id, s); + }); + availableServices = Array.from(uniqueSvc.values()); } else { toast.error('Failed to load patch test data'); }