Skip to content

Commit 93ff388

Browse files
committed
fix: datasource could be null
1 parent 4b20852 commit 93ff388

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/common/network/sql/executeSQL.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ export default async function executeSQL(
232232
return pre;
233233
}, []);
234234
const unauthorizedResource = taskInfo?.unauthorizedDBResources;
235-
const violatedRules = rootViolatedRules?.concat(taskInfo?.sqls);
236235
if (unauthorizedResource?.length) {
237236
// 无权限库
238237
return {

src/component/Task/AlterDdlTask/DetailContent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export function getItems(
211211
id: 'odc.src.component.Task.AlterDdlTask.DetailContent.DataSource',
212212
}),
213213
//'所属数据源'
214-
task?.database.dataSource?.name || '-',
214+
task?.database?.dataSource?.name || '-',
215215
],
216216

217217
hasFlow ? riskItem : null,

0 commit comments

Comments
 (0)