Unverified Commit 944b88d4 authored by gaoyan's avatar gaoyan Committed by GitHub

[Fix]the registered session cluster cannot be selected (#2931)

* The issue that the registered session cluster cannot be selected is fixed * The issue that the registered session cluster cannot be selected is fixed
parent 0cb6e987
......@@ -80,7 +80,10 @@ export const buildClusterOptions = (
const sessionClusterOptions: DefaultOptionType[] = [];
// filter session cluster options, and need to filter auto register cluster and status is normal(1)
sessionCluster = sessionCluster.filter(
(item) => item.type === selectedRunMode && !item.autoRegisters && item.status === 1
(item) =>
item.type === selectedRunMode &&
item.status === 1 &&
(!item.autoRegisters || item.clusterConfigurationId)
);
for (const item of sessionCluster) {
......
......@@ -190,6 +190,7 @@ declare namespace Cluster {
version: string;
status: number;
note: string;
clusterConfigurationId: number;
};
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment