fix: remove description json format

This commit is contained in:
jialin
2026-05-27 17:10:15 +08:00
committed by jialin
parent 3497590d2e
commit a4c48c1981
3 changed files with 25 additions and 26 deletions
@@ -115,16 +115,12 @@ const AddModal: React.FC<AddModalProps> = ({
};
const saveInstanceDataInDescription = (instanceType: InstanceTypeItem) => {
return JSON.stringify(
{
name: instanceType.name,
spec: {
...instanceType.spec
}
},
null,
2
);
return JSON.stringify({
name: instanceType.name,
spec: {
...instanceType.spec
}
});
};
// apply the selection of instance type and template