fix: cluster worker_config refill

This commit is contained in:
jialin
2026-05-28 15:51:51 +08:00
committed by jialin
parent 9488fc1251
commit e47a9304f4
7 changed files with 252 additions and 121 deletions
@@ -119,8 +119,8 @@ const ClusterForm: React.FC<AddModalProps> = forwardRef(
if (!Array.isArray(creds)) return values;
const fixed = creds.map((c: any) => ({
...c,
username: c?.username ? c.username : null,
password: c?.password ? c.password : null
username: c?.username || null,
password: c?.password || null
}));
return {
...values,