diff --git a/src/pages/flowEditor/nodeEditors/components/WaitEditor.tsx b/src/pages/flowEditor/nodeEditors/components/WaitEditor.tsx index 2634afa..91ba70d 100644 --- a/src/pages/flowEditor/nodeEditors/components/WaitEditor.tsx +++ b/src/pages/flowEditor/nodeEditors/components/WaitEditor.tsx @@ -25,7 +25,7 @@ const WaitEditor: React.FC = ({ nodeData, updateNodeData }) => }); useEffect(() => { - if (nodeData.component.customDef) { + if (nodeData?.component?.customDef) { const duration = JSON.parse(nodeData.component.customDef).duration; setDuration({ hour: Math.floor(duration / 3600),