diff --git a/apps/client/src/components/dispatch/active-units/modals/merge-unit-modal.tsx b/apps/client/src/components/dispatch/active-units/modals/merge-unit-modal.tsx index aafb70f20..0b7b56d43 100644 --- a/apps/client/src/components/dispatch/active-units/modals/merge-unit-modal.tsx +++ b/apps/client/src/components/dispatch/active-units/modals/merge-unit-modal.tsx @@ -154,9 +154,9 @@ export function MergeUnitModal({ }} fetchOptions={{ apiPath: (query) => - `/admin/values/emergency_vehicle/search?query=${query}&department=${( - activeUnit ?? unit - )?.departmentId}`, + `/admin/values/emergency_vehicle/search?query=${query}&department=${ + (activeUnit ?? unit)?.departmentId + }`, filterTextRequired: true, }} >