fix: miss default name in deploy

This commit is contained in:
jialin
2026-01-31 14:39:44 +08:00
parent 1e298bbbc0
commit 8d660b20aa
3 changed files with 8 additions and 8 deletions
@@ -295,7 +295,9 @@ const AddModal: FC<AddModalProps> = (props) => {
manual?: boolean
) => {
if (item.name === currentSelectedModel.current.name) {
return manual ? modelName : form.current?.getFieldValue?.('name');
return manual
? modelName
: form.current?.getFieldValue?.('name') || modelName;
}
return modelName;
};
@@ -343,8 +345,6 @@ const AddModal: FC<AddModalProps> = (props) => {
categories: getCategory(item)
});
console.log('modelInfo:', modelInfo);
let warningStatus: MessageStatus = {
show: true,
title: '',