fix(parameterComponent): update disabled logic to include proxy property in the comparison
fix(sideBarDraggableComponent): remove unnecessary line breaks and update deleteComponent function call
This commit is contained in:
parent
c1fa3c49ab
commit
3db17aa7b6
2 changed files with 6 additions and 4 deletions
|
|
@ -84,7 +84,11 @@ export default function ParameterComponent({
|
||||||
let disabled =
|
let disabled =
|
||||||
reactFlowInstance
|
reactFlowInstance
|
||||||
?.getEdges()
|
?.getEdges()
|
||||||
.some((edge) => edge.targetHandle === scapedJSONStringfy(id)) ?? false;
|
.some(
|
||||||
|
(edge) =>
|
||||||
|
edge.targetHandle ===
|
||||||
|
scapedJSONStringfy(proxy ? { ...id, proxy } : id)
|
||||||
|
) ?? false;
|
||||||
|
|
||||||
const { data: myData } = useContext(typesContext);
|
const { data: myData } = useContext(typesContext);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,7 @@ export default function SidebarDraggableComponent({
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case "delete":
|
case "delete":
|
||||||
deleteComponent(
|
deleteComponent(display_name);
|
||||||
display_name
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue