diff --git a/src/components/Panels/RightPanel.tsx b/src/components/Panels/RightPanel.tsx index f71f851..c71bde3 100644 --- a/src/components/Panels/RightPanel.tsx +++ b/src/components/Panels/RightPanel.tsx @@ -12,6 +12,7 @@ import { useGraphWithHistory } from '../../hooks/useGraphWithHistory'; import { useDocumentHistory } from '../../hooks/useDocumentHistory'; import { useConfirm } from '../../hooks/useConfirm'; import GraphMetrics from '../Common/GraphMetrics'; +import { getIconComponent } from '../../utils/iconUtils'; import type { Actor, Relation, EdgeDirectionality } from '../../types'; /** @@ -398,6 +399,9 @@ const RightPanel = ({ selectedNode, selectedEdge, onClose }: Props) => { // Edge properties view if (selectedEdge) { + // Get the current edge data from the store (to reflect live updates) + const currentEdge = edges.find(e => e.id === selectedEdge.id) || selectedEdge; + const renderStylePreview = () => { if (!selectedEdgeTypeConfig) return null; @@ -439,8 +443,16 @@ const RightPanel = ({ selectedNode, selectedEdge, onClose }: Props) => {