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 =
|
||||
reactFlowInstance
|
||||
?.getEdges()
|
||||
.some((edge) => edge.targetHandle === scapedJSONStringfy(id)) ?? false;
|
||||
.some(
|
||||
(edge) =>
|
||||
edge.targetHandle ===
|
||||
scapedJSONStringfy(proxy ? { ...id, proxy } : id)
|
||||
) ?? false;
|
||||
|
||||
const { data: myData } = useContext(typesContext);
|
||||
|
||||
|
|
|
|||
|
|
@ -52,9 +52,7 @@ export default function SidebarDraggableComponent({
|
|||
);
|
||||
break;
|
||||
case "delete":
|
||||
deleteComponent(
|
||||
display_name
|
||||
);
|
||||
deleteComponent(display_name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue