( workspaceId: string, workflowId: string, scope: WorkflowQueryScope = 'active' )
| 21 | * Reads a single workflow by id from the React Query cache. |
| 22 | */ |
| 23 | export function getWorkflowById( |
| 24 | workspaceId: string, |
| 25 | workflowId: string, |
| 26 | scope: WorkflowQueryScope = 'active' |
| 27 | ): WorkflowMetadata | undefined { |
| 28 | return getWorkflows(workspaceId, scope).find((workflow) => workflow.id === workflowId) |
| 29 | } |
no test coverage detected