Skip to content

Commit 7c65438

Browse files
committed
fix: handle empty appEnvList in getAppGroupDeploymentWindowMap
1 parent 3046d0b commit 7c65438

File tree

1 file changed

+1
-1
lines changed
  • src/components/app/details/triggerView/DeployImageModal

1 file changed

+1
-1
lines changed

src/components/app/details/triggerView/DeployImageModal/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const getAppGroupDeploymentWindowMap = async (
150150
appEnvList: (Pick<WorkflowType, 'appId'> & { envId: number })[],
151151
envId: number,
152152
): Promise<GetAppGroupDeploymentWindowMapReturnType> => {
153-
if (!getDeploymentWindowStateAppGroup || !processDeploymentWindowMetadata) {
153+
if (!getDeploymentWindowStateAppGroup || !processDeploymentWindowMetadata || !appEnvList?.length) {
154154
return {
155155
deploymentWindowMap: {},
156156
isPartialActionAllowed: false,

0 commit comments

Comments
 (0)