Droponlink issue

i have a diagram like below . Whenever i drop a node on a link it will be added in between two existing nodes like below

but the right link which will be created automatically points to the top of next node as shown in the diagram above. But i wanted to have the link to left port of ifelse node as shown in the first picture. how can i achieve this?

It appears that the new link that you created has not set its “toPortId” (or whatever property you are using in your GraphLinksModel) to refer to the port on the left side of that node.