Skip to content

Commit

Permalink
fix: datasource could be null
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Jul 12, 2024
1 parent 4b20852 commit 93ff388
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/common/network/sql/executeSQL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ export default async function executeSQL(
return pre;
}, []);
const unauthorizedResource = taskInfo?.unauthorizedDBResources;
const violatedRules = rootViolatedRules?.concat(taskInfo?.sqls);
if (unauthorizedResource?.length) {
// 无权限库
return {
Expand Down
2 changes: 1 addition & 1 deletion src/component/Task/AlterDdlTask/DetailContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function getItems(
id: 'odc.src.component.Task.AlterDdlTask.DetailContent.DataSource',
}),
//'所属数据源'
task?.database.dataSource?.name || '-',
task?.database?.dataSource?.name || '-',
],

hasFlow ? riskItem : null,
Expand Down

0 comments on commit 93ff388

Please sign in to comment.