Xuxiaotuan commented on issue #16567:
URL: 
https://github.com/apache/dolphinscheduler/issues/16567#issuecomment-2326875463

   1.  the back-end interface may report errors
   2. When the back end returns normal, but returns an empty array, the front 
end cannot proceed to the next step
   
   ```
   use-dependencies.ts:152 Uncaught (in promise) TypeError: res.filter is not a 
function
       at use-dependencies.ts:152:14
       at async getDependentTaskLinksByTask (use-dependencies.ts:149:7)
       at async handleDelete (dag-context-menu.tsx:150:19)
   ```
   For example:
   ```js
   await queryDependentTasks(projectCode, dependentTaskReq).then(
           (res: any) => {
             res
               .filter((item: any) => item.processDefinitionCode !== 
workflowCode)
               .forEach((item: any) => {
                 dependentTaskLinks.push({
                   text:
                     item.processDefinitionName + '->' + 
item.taskDefinitionName,
                   show: true,
                   action: () => {
                     const url = 
`/projects/${item.projectCode}/workflow/definitions/${item.processDefinitionCode}`
                     window.open(url, '_blank')
                   }
                 })
               })
           }
         )
   ```
   Let me verify that again


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to