[Bug] [Api] Using the TaskDefinitionController-save-single interface can lead to duplicate predecessor tasks.
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
Use this API
Adding a task adds an additional front-end node,
If too many tasks are added, it can cause the workflow details to get stuck when opening.
What you expected to happen
I expect each task to have only one predecessor node,
like this
How to reproduce
use this api >1 time ,you can reproduce the problem
Anything else
No response
Version
dev
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Please don't use the task page to create new task, there is a lot of bugs here, we don't want to change the code here, unless you want to refactor the whole process.
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.