devosend commented on a change in pull request #9102:
URL: https://github.com/apache/dolphinscheduler/pull/9102#discussion_r832088295



##########
File path: 
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-active.ts
##########
@@ -89,29 +86,17 @@ export function useCellActive(options: Options) {
       PORT_SELECTED.groups[X6_PORT_OUT_NAME].attrs
     )
     const portDefault = _.cloneDeep(PORT.groups[X6_PORT_OUT_NAME].attrs)
-    const nodeHover = _.merge(_.cloneDeep(NODE.attrs), NODE_HOVER.attrs)
-    const nodeSelected = _.merge(_.cloneDeep(NODE.attrs), NODE_SELECTED.attrs)
 
-    let img = null
-    let nodeAttrs = null
     let portAttrs = null
-
     if (isHover || isSelected) {

Review comment:
       This code can be changed to 
   ```
   if (isHover)
   {
   }
   else if (isSelected)
   {
   }
   else
   {
   }
   ```
   
   




-- 
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