diff --git a/.changeset/cold-teachers-shout.md b/.changeset/cold-teachers-shout.md new file mode 100644 index 00000000..7fde0f18 --- /dev/null +++ b/.changeset/cold-teachers-shout.md @@ -0,0 +1,5 @@ +--- +"@tokens-studio/graph-editor": patch +--- + +Fix bug with visibility on ports diff --git a/packages/graph-editor/src/components/flow/wrapper/nodeV2.tsx b/packages/graph-editor/src/components/flow/wrapper/nodeV2.tsx index 35cc58bb..3cf7ee22 100644 --- a/packages/graph-editor/src/components/flow/wrapper/nodeV2.tsx +++ b/packages/graph-editor/src/components/flow/wrapper/nodeV2.tsx @@ -146,7 +146,7 @@ export const PortArray = observer(({ ports, hideNames }: IPortArray) => { return ( <> {entries - .filter((x) => x.visible || x.isConnected) + .filter((x) => x.visible != false || x.isConnected) .map((input) => ( ))}