fix: query catalog spec, default_version check

This commit is contained in:
jialin
2025-12-12 17:08:30 +08:00
parent cb43131ccb
commit 0500dd2e35
19 changed files with 86 additions and 23 deletions
+4 -1
View File
@@ -198,7 +198,10 @@ const Catalog: React.FC = () => {
const getCatalogSource = async () => {
try {
const id = dataSource.dataList?.[0]?.id;
const res: any = await queryCatalogItemSpec({ id, cluster_id: 0 });
const res: any = await queryCatalogItemSpec({
id,
cluster_id: null
});
sourceRef.current = res?.items?.[0]?.source;
} catch (error) {}
};