diff --git a/Data/Server/WebUI/src/Flow_Editor.jsx b/Data/Server/WebUI/src/Flow_Editor.jsx index 9e94f34..21a0225 100644 --- a/Data/Server/WebUI/src/Flow_Editor.jsx +++ b/Data/Server/WebUI/src/Flow_Editor.jsx @@ -53,8 +53,7 @@ export default function FlowEditor({ return () => { delete window.BorealisOpenDrawer; }; - }, []); - + }, [nodes]); const wrapperRef = useRef(null); const { project } = useReactFlow(); @@ -353,17 +352,25 @@ export default function FlowEditor({ if (nodeCountEl) nodeCountEl.innerText = nodes.length; }, [nodes]); + const selectedNode = nodes.find((n) => n.data?.label === selectedNodeLabel); + const nodeTypeMeta = selectedNode + ? Object.values(categorizedNodes).flat().find((def) => def.type === selectedNode.type) + : null; + return (
- This sidebar will be used to configure nodes in the future. -
-- The idea is that this area will allow for more node configuration controls to be dynamically-populated by the nodes to allow more complex node documentation and configuration. -
+ {activeTab === 0 && renderConfigFields()} + {activeTab === 1 && ( +