From f28744a004f55e66c92306be285a085f968bf8e6 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Thu, 24 Oct 2024 10:13:58 +0530 Subject: [PATCH] Fix deployment actions check --- .../frontend/src/components/projects/create/Configure.tsx | 2 +- .../projects/project/deployments/DeploymentMenu.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/components/projects/create/Configure.tsx b/packages/frontend/src/components/projects/create/Configure.tsx index 15305ef7..058d18c7 100644 --- a/packages/frontend/src/components/projects/create/Configure.tsx +++ b/packages/frontend/src/components/projects/create/Configure.tsx @@ -223,8 +223,8 @@ const Configure = () => { }, }} > - Deployer LRN Create Auction + Deployer LRN )} /> diff --git a/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx b/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx index 421c2bba..118dca39 100644 --- a/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx +++ b/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx @@ -56,7 +56,7 @@ export const DeploymentMenu = ({ const updateDeployment = async () => { const isUpdated = await client.updateDeploymentToProd(deployment.id); - if (isUpdated) { + if (isUpdated.updateDeploymentToProd) { await onUpdate(); toast({ id: 'deployment_changed_to_production', @@ -77,7 +77,7 @@ export const DeploymentMenu = ({ const redeployToProd = async () => { const isRedeployed = await client.redeployToProd(deployment.id); setConfirmButtonLoadingLoading(false); - if (isRedeployed) { + if (isRedeployed.redeployToProd) { await onUpdate(); toast({ id: 'redeployed_to_production', @@ -100,7 +100,7 @@ export const DeploymentMenu = ({ project.id, deployment.id, ); - if (isRollbacked) { + if (isRollbacked.rollbackDeployment) { await onUpdate(); toast({ id: 'deployment_rolled_back', @@ -124,7 +124,7 @@ export const DeploymentMenu = ({ setIsConfirmDeleteLoading(false); setDeleteDeploymentDialog((preVal) => !preVal); - if (isDeleted) { + if (isDeleted.deleteDeployment) { await onUpdate(); toast({ id: 'deployment_removal_requested',