fix(editor): 🐛 Delete edge when adding last step
This commit is contained in:
@ -75,7 +75,6 @@ export const Edge = ({ edge }: { edge: EdgeProps }) => {
|
||||
sourceTop,
|
||||
])
|
||||
|
||||
if (sourceTop === 0) return <></>
|
||||
return (
|
||||
<path
|
||||
data-testid="edge"
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user