fix: menu status mismatch

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 336bafd6ce
commit 913f2f5077
5 changed files with 16 additions and 8 deletions
@@ -349,7 +349,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
const initClusterId = () => {
const cluster_id =
clusterList?.find((item) => item.provider === ProviderValueMap.Custom)
clusterList?.find((item) => item.provider === ProviderValueMap.Docker)
?.value || clusterList?.[0]?.value;
console.log('cluster_id:', cluster_id);
@@ -369,7 +369,7 @@ const AddModal: FC<AddModalProps> = (props) => {
const initClusterId = () => {
const cluster_id =
clusterList?.find((item) => item.provider === ProviderValueMap.Custom)
clusterList?.find((item) => item.provider === ProviderValueMap.Docker)
?.value || clusterList?.[0]?.value;
return cluster_id;