Skip to content

Commit

Permalink
[Fix] fix catalog page npe (#3229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored Mar 4, 2024
1 parent 3eea79c commit 24cdda4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 24cdda4

Please sign in to comment.