fix: catalog hidden fields

This commit is contained in:
jialin
2026-05-28 15:51:51 +08:00
committed by jialin
parent e47a9304f4
commit f99621ec92
4 changed files with 10 additions and 2 deletions
@@ -17,6 +17,8 @@ const ModelLoraList = () => {
const base = huggingfaceRepoId || modelScopeModelId || localPath || '';
console.log('fetching lora list with base', base, form.getFieldsValue());
const { dataList: defaultDataList, fetchData } = useQueryModelLoraList();
const [itemList, setItemList] = useState<ItemValue[]>([]);
@@ -49,6 +51,7 @@ const ModelLoraList = () => {
prevBaseRef.current = '';
return;
}
fetchData({ base });
if (prevBaseRef.current && prevBaseRef.current !== base) {
form.setFieldValue('lora_list', []);