Remove checking for REMOVED deployment status

This commit is contained in:
Shreerang Kale 2024-10-23 15:59:47 +05:30 committed by Adw8
parent 1c13bcf66d
commit 7a226dfbfd

View File

@ -51,11 +51,8 @@ const Deploy = () => {
return true; return true;
} }
if ( // Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status
record.lastState === 'CANCELLED' || if (record.lastState === 'CANCELLED' || record.lastState === 'ERROR') {
record.lastState === 'REMOVED' ||
record.lastState === 'ERROR'
) {
return false; return false;
} else { } else {
return true; return true;
@ -67,9 +64,9 @@ const Deploy = () => {
return true; return true;
} }
// Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status
if ( if (
record.lastState === 'CANCELLED' || record.lastState === 'CANCELLED' ||
record.lastState === 'REMOVED' ||
record.lastState === 'ERROR' || record.lastState === 'ERROR' ||
record.lastState === 'DEPLOYED' record.lastState === 'DEPLOYED'
) { ) {