diff --git a/plugins/octopus-deploy/src/components/EntityPageOctopusDeploy/EntityPageOctopusDeploy.tsx b/plugins/octopus-deploy/src/components/EntityPageOctopusDeploy/EntityPageOctopusDeploy.tsx index 34ff780f70..5fc035595c 100644 --- a/plugins/octopus-deploy/src/components/EntityPageOctopusDeploy/EntityPageOctopusDeploy.tsx +++ b/plugins/octopus-deploy/src/components/EntityPageOctopusDeploy/EntityPageOctopusDeploy.tsx @@ -28,11 +28,11 @@ export const EntityPageOctopusDeploy = (props: { defaultLimit?: number }) => { const projectId = getProjectIdAnnotationFromEntity(entity); const spaceId = getSpaceIdAnnotationFromEntity(entity); - const { environments, releases, loading, error } = useReleases({ + const { environments, releases, loading, error } = useReleases( projectId, + props.defaultLimit ?? 3, spaceId, - releaseHistoryCount: props.defaultLimit ?? 3, - }); + ); return ( { - return api.getReleaseProgression(opts); - }, [api, opts]); + return api.getReleaseProgression({ + projectId, + spaceId, + releaseHistoryCount, + }); + }, [api, projectId, spaceId, releaseHistoryCount]); return { environments: value?.Environments,