From 7a226dfbfd5cdd471e0ec1104f8ba557d0c0fe4e Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Wed, 23 Oct 2024 15:59:47 +0530 Subject: [PATCH] Remove checking for REMOVED deployment status --- .../frontend/src/components/projects/create/Deploy.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/projects/create/Deploy.tsx b/packages/frontend/src/components/projects/create/Deploy.tsx index 4fb25c69..9acfdff8 100644 --- a/packages/frontend/src/components/projects/create/Deploy.tsx +++ b/packages/frontend/src/components/projects/create/Deploy.tsx @@ -51,11 +51,8 @@ const Deploy = () => { return true; } - if ( - record.lastState === 'CANCELLED' || - record.lastState === 'REMOVED' || - record.lastState === 'ERROR' - ) { + // Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status + if (record.lastState === 'CANCELLED' || record.lastState === 'ERROR') { return false; } else { return true; @@ -67,9 +64,9 @@ const Deploy = () => { return true; } + // Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status if ( record.lastState === 'CANCELLED' || - record.lastState === 'REMOVED' || record.lastState === 'ERROR' || record.lastState === 'DEPLOYED' ) {