Skip to content

Commit 8c3849a

Browse files
committed
fix: add missing toast when workflows are launched
1 parent b8f3d7b commit 8c3849a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/runCards/WorkflowCard/WorkflowModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface WorkflowModalProps {
2323
* Modal for running a workflow instance. Fetches workflow details and displays the correct form.
2424
*/
2525
export const WorkflowModal = ({ workflowId, projectId, open, onClose }: WorkflowModalProps) => {
26-
const { enqueueError } = useEnqueueError<DmError>();
26+
const { enqueueError, enqueueSnackbar } = useEnqueueError<DmError>();
2727

2828
const { data: workflow } = useGetWorkflow(workflowId);
2929
const specVariables = workflow?.variables;
@@ -55,6 +55,7 @@ export const WorkflowModal = ({ workflowId, projectId, open, onClose }: Workflow
5555
variables: JSON.stringify({ ...optionsFormData, ...inputsData }),
5656
},
5757
}));
58+
enqueueSnackbar("Workflow instance started successfully", { variant: "success" });
5859
} catch (error) {
5960
enqueueError(error);
6061
} finally {

0 commit comments

Comments
 (0)