diff --git a/frontend/src/components/workflow/WorkflowCanvas.jsx b/frontend/src/components/workflow/WorkflowCanvas.jsx index 91ca62d..447d68c 100644 --- a/frontend/src/components/workflow/WorkflowCanvas.jsx +++ b/frontend/src/components/workflow/WorkflowCanvas.jsx @@ -41,7 +41,8 @@ export function WorkflowCanvas({ maxZoom={2} defaultEdgeOptions={{ animated: false, - style: { strokeWidth: 2 } + style: { strokeWidth: 2 }, + deletable: true }} > void */ -export function FallbackConfig({ node, edges, onChange }) { +export function FallbackConfig({ node, edges, nodes, onChange }) { const fallbackStrategy = node.data.fallback_strategy || 'conservative_skip' const fallbackEdge = node.data.fallback_edge || null // Outgoing Edges von diesem Node const outgoingEdges = edges.filter(e => e.source === node.id) + // Helper: Get node label by ID + const getNodeLabel = (nodeId) => { + const targetNode = nodes.find(n => n.id === nodeId) + return targetNode?.data?.label || nodeId + } + const handleStrategyChange = (e) => { const strategy = e.target.value onChange(node.id, { fallback_strategy: strategy }) @@ -53,7 +60,7 @@ export function FallbackConfig({ node, edges, onChange }) { {outgoingEdges.map(e => ( ))} diff --git a/frontend/src/pages/AdminPromptsPage.jsx b/frontend/src/pages/AdminPromptsPage.jsx index 67cb553..f4c5845 100644 --- a/frontend/src/pages/AdminPromptsPage.jsx +++ b/frontend/src/pages/AdminPromptsPage.jsx @@ -530,7 +530,13 @@ export default function AdminPromptsPage() { justifyContent: 'flex-end' }}>