fix: built-in backend versions endwith -custom

This commit is contained in:
jialin
2025-10-27 16:09:09 +08:00
parent 61065ee0b7
commit 697f1f9c25
15 changed files with 96 additions and 48 deletions
+3 -1
View File
@@ -56,7 +56,9 @@ const AddModal: React.FC<AddModalProps> = (props) => {
const onOk = () => {
if (activeKey === 'yaml') {
const content = editorRef.current?.getContent();
onSubmitYaml({ content: content });
if (content) {
onSubmitYaml({ content: content });
}
} else {
formRef.current?.submit();
}