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;
}
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'
) {