Add "Execute on Any Outcome" (Finally) option to blocks - Pair Team request (#4443)
This commit is contained in:
@@ -143,6 +143,7 @@ const useWorkflowSave = (opts?: WorkflowSaveOpts) => {
|
||||
version: saveData.workflowDefinitionVersion,
|
||||
parameters: saveData.parameters,
|
||||
blocks: saveData.blocks,
|
||||
finally_block_label: saveData.settings.finallyBlockLabel ?? undefined,
|
||||
},
|
||||
is_saved_task: saveData.workflow.is_saved_task,
|
||||
status: opts?.status ?? saveData.workflow.status,
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface WorkflowSettingsState {
|
||||
model: WorkflowModel | null;
|
||||
maxScreenshotScrollingTimes: number | null;
|
||||
extraHttpHeaders: string | Record<string, unknown> | null;
|
||||
finallyBlockLabel: string | null;
|
||||
setWorkflowSettings: (
|
||||
settings: Partial<
|
||||
Omit<
|
||||
@@ -33,6 +34,7 @@ const defaultState: Omit<
|
||||
model: null,
|
||||
maxScreenshotScrollingTimes: null,
|
||||
extraHttpHeaders: null,
|
||||
finallyBlockLabel: null,
|
||||
};
|
||||
|
||||
export const useWorkflowSettingsStore = create<WorkflowSettingsState>(
|
||||
|
||||
Reference in New Issue
Block a user