Responsive Gui - partially Workflow #61
|
|
@ -62,11 +62,9 @@ export default function WorkflowEditorPage() {
|
||||||
|
|
||||||
// Load workflow wenn ID vorhanden
|
// Load workflow wenn ID vorhanden
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (id && id !== 'new' && !isNaN(parseInt(id))) {
|
if (id && id !== 'new') {
|
||||||
console.log('🔍 useEffect: Loading workflow with ID:', id)
|
console.log('🔍 useEffect: Loading workflow with ID:', id)
|
||||||
loadWorkflow(parseInt(id))
|
loadWorkflow(id) // UUID as string, no parseInt!
|
||||||
} else if (id && id !== 'new') {
|
|
||||||
console.error('❌ useEffect: Invalid ID (NaN):', id)
|
|
||||||
}
|
}
|
||||||
}, [id])
|
}, [id])
|
||||||
|
|
||||||
|
|
@ -419,7 +417,7 @@ export default function WorkflowEditorPage() {
|
||||||
const selectedPrompt = availablePrompts.find(p => String(p.id) === promptId)
|
const selectedPrompt = availablePrompts.find(p => String(p.id) === promptId)
|
||||||
console.log('📋 Selected prompt object:', selectedPrompt)
|
console.log('📋 Selected prompt object:', selectedPrompt)
|
||||||
handleNodeUpdate(selectedNode.id, {
|
handleNodeUpdate(selectedNode.id, {
|
||||||
prompt_id: promptId ? parseInt(promptId) : null,
|
prompt_id: promptId || null, // UUID as string, no parseInt!
|
||||||
prompt_name: selectedPrompt?.name || null
|
prompt_name: selectedPrompt?.name || null
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user