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:
anovazzi1 2023-11-22 21:35:10 -03:00
commit 3db17aa7b6
2 changed files with 6 additions and 4 deletions

View file

@ -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);

View file

@ -52,9 +52,7 @@ export default function SidebarDraggableComponent({
); );
break; break;
case "delete": case "delete":
deleteComponent( deleteComponent(display_name);
display_name
);
break; break;
} }
} }