In this PR: - Display a workflow version visualizer for the version of the workflow the run was executed on. - Display the output of the run as code. https://github.com/user-attachments/assets/d617300a-bff4-4328-a35c-291dc86d81cf
17 lines
485 B
TypeScript
17 lines
485 B
TypeScript
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
|
import { useFindOneRecord } from '@/object-record/hooks/useFindOneRecord';
|
|
import { WorkflowRun } from '@/workflow/types/Workflow';
|
|
|
|
export const useWorkflowRun = ({
|
|
workflowRunId,
|
|
}: {
|
|
workflowRunId: string;
|
|
}) => {
|
|
const { record } = useFindOneRecord<WorkflowRun>({
|
|
objectNameSingular: CoreObjectNameSingular.WorkflowRun,
|
|
objectRecordId: workflowRunId,
|
|
});
|
|
|
|
return record;
|
|
};
|