Check deployment status while creating project with single deployer #15
@ -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