Remove checking for REMOVED deployment status
This commit is contained in:
parent
1c13bcf66d
commit
7a226dfbfd
@ -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'
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user