Unverified Commit 24cdda47 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Fix] fix catalog page npe (#3229)

parent 3eea79c2
......@@ -46,7 +46,7 @@ const Catalog: React.FC = (props: connect) => {
if (!currentData) {
return <Empty description={l('pages.datastudio.catalog.selectDatasource')} />;
}
const dialect = currentData?.dialect.toLowerCase() ?? '';
const dialect = currentData?.dialect?.toLowerCase() ?? '';
const fragment = currentData?.fragment ?? true;
let envId: number | undefined;
let databaseId: number | undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment