fix: gguf input box is hidden when deploying from model files

This commit is contained in:
jialin
2026-05-19 12:16:02 +08:00
committed by jialin
parent bcea46fa8f
commit 0b3884b1a5
4 changed files with 5 additions and 7 deletions
@@ -104,6 +104,7 @@ const AddModal: FC<AddModalProps> = (props) => {
width = 600,
deploymentType = 'modelList',
initialValues,
isGGUF: isGGUFProp,
clusterList
} = props || {};
const SEARCH_SOURCE = [
@@ -543,6 +544,7 @@ const AddModal: FC<AddModalProps> = (props) => {
useEffect(() => {
if (open) {
setIsGGUF(isGGUFProp || false);
handleOnOpen();
} else {
cancelEvaluate();
@@ -556,7 +558,7 @@ const AddModal: FC<AddModalProps> = (props) => {
message: []
});
};
}, [open, clusterList, initialValues?.cluster_id]);
}, [open, clusterList, initialValues?.cluster_id, isGGUFProp]);
return (
<GSDrawer
@@ -190,6 +190,7 @@ const DownloadModel: React.FC<AddModalProps> = (props) => {
onCollapse={setCollapsed}
collapsed={collapsed}
modelSource={props.source}
isGGUF={isGGUF}
setIsGGUF={handleSetIsGGUF}
></ModelCard>
{isGGUF && (