2
0

fix(editor): 🐛 Delete edge when adding last step

This commit is contained in:
Baptiste Arnaud
2022-02-15 15:45:52 +01:00
parent 93e8f90ac3
commit 67ccf07a61
4 changed files with 39 additions and 7 deletions

View File

@ -196,7 +196,8 @@ export const StepNode = ({
top="19px"
stepId={localStep.id}
/>
{isConnectable && hasDefaultConnector(localStep) && (
{(localStep.outgoingEdgeId ||
(isConnectable && hasDefaultConnector(localStep))) && (
<SourceEndpoint
source={{
blockId: localStep.blockId,