fix: remove worker config bg color

This commit is contained in:
Yuxing Deng
2026-06-05 10:19:08 +08:00
committed by jialin
parent 0c16e2be7a
commit faf6246fe6
2 changed files with 10 additions and 1 deletions
@@ -184,6 +184,16 @@ const cleanK8sOptions = (opts: any) => {
({ sourceType, ...rest }: any) => rest
);
}
// The edit form always seeds k8s_options.volumeMounts to [] even when the
// saved cluster had no value, so an absent field would otherwise read as a
// change the moment the drawer opens. Drop empty top-level arrays on both
// sides: "absent" and "empty list" both mean nothing configured. A
// non-empty -> empty edit is still detected, since only the empty side drops.
Object.keys(cloned).forEach((key) => {
if (Array.isArray(cloned[key]) && cloned[key].length === 0) {
delete cloned[key];
}
});
return JSON.parse(JSON.stringify(cloned));
};
@@ -25,7 +25,6 @@ const Title = styled.div`
display: flex;
align-items: center;
justify-content: space-between;
background-color: var(--ant-color-bg-container);
font-weight: 500;
font-size: 14px;
padding-top: 0px;