fix: miss default name in deploy
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user