diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 904a94b79..8eb8ca77c 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -211,10 +211,12 @@ export default function GenericNode({ } }, [validationStatus, validationStatus?.params]); - // const showNode = data.showNode ?? true; - const [showNode, setShowNode] = useState(data.showNode ?? true); + useEffect(() => { + setShowNode(data.showNode ?? true); + }, [data.showNode]); + const nameEditable = true; const emojiRegex = /\p{Emoji}/u;