fix: query catalog spec, default_version check
This commit is contained in:
@@ -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) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user