diff --git a/src/pages/observation/[observationId]/index.tsx b/src/pages/observation/[observationId]/index.tsx index 49881f26..0939ff0d 100644 --- a/src/pages/observation/[observationId]/index.tsx +++ b/src/pages/observation/[observationId]/index.tsx @@ -271,9 +271,22 @@ setEntityData(result) const observationId = Id; if (entity === ObservationEntityType.CENTER && unmatchedCohortIds.length !== 0) { await addEntities({ data, observationId }); + const urlPath = window.location.pathname; + + const solutionId = urlPath.split('/observation/')[1]; + + const response = await fetchEntities({ solutionId }); + setFetchEntityResponse(response?.result?.entities) } else if (unmatchedUserIds.length !== 0) { await addEntities({ data, observationId }); + const urlPath = window.location.pathname; + + const solutionId = urlPath.split('/observation/')[1]; + + const response = await fetchEntities({ solutionId }); + setFetchEntityResponse(response?.result?.entities) } + } };