diff --git a/static/app/components/workflowEngine/layout/edit.tsx b/static/app/components/workflowEngine/layout/edit.tsx
index d25aa7a7dff28c..347db7b256953a 100644
--- a/static/app/components/workflowEngine/layout/edit.tsx
+++ b/static/app/components/workflowEngine/layout/edit.tsx
@@ -81,7 +81,7 @@ function Title({title, project}: {title: string; project?: AvatarProject}) {
function Actions({children}: RequiredChildren) {
return (
- {children}
+ {children}
);
}
diff --git a/static/app/types/workflowEngine/detectors.tsx b/static/app/types/workflowEngine/detectors.tsx
index e49f93f5364feb..6f759ef1a323e3 100644
--- a/static/app/types/workflowEngine/detectors.tsx
+++ b/static/app/types/workflowEngine/detectors.tsx
@@ -131,7 +131,7 @@ type BaseDetector = Readonly<{
createdBy: string | null;
dateCreated: string;
dateUpdated: string;
- disabled: boolean;
+ enabled: boolean;
id: string;
lastTriggered: string;
name: string;
@@ -197,6 +197,7 @@ export interface BaseDetectorUpdatePayload {
projectId: Detector['projectId'];
type: Detector['type'];
workflowIds: string[];
+ enabled?: boolean;
}
export interface UptimeDetectorUpdatePayload extends BaseDetectorUpdatePayload {
diff --git a/static/app/views/automations/components/editAutomationActions.tsx b/static/app/views/automations/components/editAutomationActions.tsx
index 3f412cacbc558e..11047f06fc1b55 100644
--- a/static/app/views/automations/components/editAutomationActions.tsx
+++ b/static/app/views/automations/components/editAutomationActions.tsx
@@ -34,9 +34,9 @@ export function EditAutomationActions({automation}: EditAutomationActionsProps)
enabled: newEnabled,
},
{
- onSuccess: () => {
+ onSuccess: data => {
addSuccessMessage(
- newEnabled ? t('Automation enabled') : t('Automation disabled')
+ data.enabled ? t('Automation enabled') : t('Automation disabled')
);
},
}
@@ -58,16 +58,15 @@ export function EditAutomationActions({automation}: EditAutomationActionsProps)
return (
-
+