Skip to content

Commit

Permalink
fix(dataset): avoid crash if database missing (apache#19582)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and philipher29 committed Jun 9, 2022
1 parent eddd68b commit d4b1812
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,10 @@ class DatasourceEditor extends React.PureComponent {
database={{
...datasource.database,
database_name:
datasource.database.database_name ||
datasource.database.name,
datasource.database?.database_name ||
datasource.database?.name,
}}
dbId={datasource.database.id}
dbId={datasource.database?.id}
handleError={this.props.addDangerToast}
schema={datasource.schema}
sqlLabMode={false}
Expand Down

0 comments on commit d4b1812

Please sign in to comment.