(event: Event)
| 839 | } |
| 840 | |
| 841 | const handleDiffSettled = async (event: Event) => { |
| 842 | const customEvent = event as CustomEvent<{ workflowId?: string }> |
| 843 | const workflowId = customEvent.detail?.workflowId |
| 844 | if (!workflowId || activeWorkflowId !== workflowId) return |
| 845 | const diffStore = useWorkflowDiffStore.getState() |
| 846 | if (!diffStore.pendingExternalUpdates[workflowId]) return |
| 847 | |
| 848 | await replayPendingExternalUpdate(workflowId, 'deferred external update') |
| 849 | } |
| 850 | |
| 851 | const handleWorkflowDeployed = (data: any) => { |
| 852 | const { workflowId } = data |
nothing calls this directly
no test coverage detected