fix: built-in backend versions endwith -custom
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user