Steps are broken when a variable is set. This is because component instance is not set for version and run visualizers. Each step viewer should be wrapped by the instance context. Each diagram visualizer should be responsible for populating the output schema. Also fixing a billing error when running workflow.
15 lines
376 B
TypeScript
15 lines
376 B
TypeScript
import { WorkflowAction, WorkflowTrigger } from '@/workflow/types/Workflow';
|
|
import { createState } from '@ui/utilities/state/utils/createState';
|
|
|
|
export const flowState = createState<
|
|
| {
|
|
workflowVersionId: string;
|
|
trigger: WorkflowTrigger | null;
|
|
steps: WorkflowAction[] | null;
|
|
}
|
|
| undefined
|
|
>({
|
|
key: 'flowState',
|
|
defaultValue: undefined,
|
|
});
|