From 52d5676328c062c332fe3418f9f991dc745c5b55 Mon Sep 17 00:00:00 2001 From: SorsOps <80043879+sorsOps@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:34:19 +0200 Subject: [PATCH] Fix port visibility --- .changeset/cold-teachers-shout.md | 5 +++++ packages/graph-editor/src/components/flow/wrapper/nodeV2.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/cold-teachers-shout.md 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) => ( ))}