diff --git a/src/components/Panels/GroupEditorPanel.tsx b/src/components/Panels/GroupEditorPanel.tsx index d99ab24..f49e7d2 100644 --- a/src/components/Panels/GroupEditorPanel.tsx +++ b/src/components/Panels/GroupEditorPanel.tsx @@ -39,6 +39,9 @@ const GroupEditorPanel = ({ selectedGroup, onClose }: Props) => { const { confirm, ConfirmDialogComponent } = useConfirm(); const reactFlowNodes = useNodes(); + // Get the current group from store to ensure we have the latest state + const currentGroup = groups.find(g => g.id === selectedGroup.id) || selectedGroup; + const [label, setLabel] = useState(selectedGroup.data.label); const [description, setDescription] = useState(selectedGroup.data.description || ''); const [color, setColor] = useState(selectedGroup.data.color); @@ -245,12 +248,12 @@ const GroupEditorPanel = ({ selectedGroup, onClose }: Props) => {