Skip to content

Commit 7673510

Browse files
committed
fix: Hide removed instances from cluster form
1 parent 119bda1 commit 7673510

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/features/clusters/upsert/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ export function UpsertCluster() {
7575
}
7676
if (!regionPlans.length && cluster.instances) {
7777
for (const instance of cluster.instances) {
78-
isSelfManaged = true;
79-
instances.push({
80-
fqdn: instance.instanceFqdn,
81-
port: instance.operationsApiPort,
82-
secure: instance.operationsApiSecure ? 'true' : 'false',
83-
});
78+
if (instance.status !== 'REMOVED') {
79+
isSelfManaged = true;
80+
instances.push({
81+
fqdn: instance.instanceFqdn,
82+
port: instance.operationsApiPort,
83+
secure: instance.operationsApiSecure ? 'true' : 'false',
84+
});
85+
}
8486
}
8587
}
8688
} else if (defaults) {

0 commit comments

Comments
 (0)