fix: add version holder for backend

This commit is contained in:
jialin
2025-05-12 15:13:44 +08:00
parent 2b7eb832ed
commit 2416fd1c71
13 changed files with 63 additions and 39 deletions
@@ -145,12 +145,12 @@ const AddModal: FC<AddModalProps> = (props) => {
categories: getCategory(item)
});
if (
item.fakeName &&
!isHolderRef.current.model &&
!isHolderRef.current.file
) {
handleShowCompatibleAlert(item.evaluateResult);
if (item.fakeName) {
handleOnValuesChange?.({
changedValues: {},
allValues: form.current?.form?.getFieldsValue?.(),
source: props.source
});
}
};
@@ -353,7 +353,6 @@ const AddModal: FC<AddModalProps> = (props) => {
modelSource={props.source}
onSelectFile={handleSelectModelFile}
collapsed={collapsed}
displayEvaluateStatus={displayEvaluateStatus}
gpuOptions={props.gpuOptions}
></HFModelFile>
)}