Skip to content

Commit dc8a5a8

Browse files
authored
[Fix-17414]Workflow relation are not displayed in ui (#17417)
1 parent 6a3025f commit dc8a5a8

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎dolphinscheduler-ui/src/service/modules/lineages/types.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ interface WorkFlowRelationList {
4343
}
4444

4545
interface WorkflowRes {
46-
workFlowRelationDetailList: WorkFlowRelationDetailListRes[]
47-
workFlowRelationList: WorkFlowRelationList[]
46+
data: {
47+
workFlowRelationDetailList: WorkFlowRelationDetailListRes[]
48+
workFlowRelationList: WorkFlowRelationList[]
49+
}
4850
}
4951

5052
interface DependentTaskReq extends WorkflowCodeReq {

‎dolphinscheduler-ui/src/views/projects/workflow/relation/use-relation.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ export function useRelation() {
4040
variables.seriesData = []
4141
variables.links = []
4242

43-
variables.seriesData = obj.workFlowRelationDetailList.map((item) => {
43+
variables.seriesData = obj.data.workFlowRelationDetailList.map((item) => {
4444
return {
4545
name: item.workFlowName,
4646
id: item.workFlowCode,
4747
...item
4848
}
4949
}) as any
5050

51-
variables.links = obj.workFlowRelationList.map((item) => {
51+
variables.links = obj.data.workFlowRelationList.map((item) => {
5252
return {
5353
source: String(item.sourceWorkFlowCode),
5454
target: String(item.targetWorkFlowCode)

0 commit comments

Comments
 (0)