diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/hooks/useFacilityCatchmentMapping.js b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/hooks/useFacilityCatchmentMapping.js index 70065a439e..455e08e695 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/hooks/useFacilityCatchmentMapping.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/hooks/useFacilityCatchmentMapping.js @@ -45,7 +45,7 @@ const useFcilityCatchmentMapping = (props) => { enabled: !!planEmployee, select: (data) => data, }, - changeQueryName: `${facilityName}${facilityType?.name}${residingBoundaries?.[0]?.code}${status?.name}${props?.state?.tableForm?.limit}${props?.state?.tableForm?.offset}`, + changeQueryName: `${facilityName}${facilityType?.name}${residingBoundariesCodes?.map((code) => code).join(', ')}${status?.name}${props?.state?.tableForm?.limit}${props?.state?.tableForm?.offset}`, }; const { isLoading, data, isFetching, refetch, revalidate } = Digit.Hooks.useCustomAPIHook(reqCriteria); return {