Skip to content

Commit

Permalink
unwrap requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 9, 2024
1 parent fef678a commit 2637aca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/page-environment/environment-alerting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default function EnvironmentAlerting({ appName, envName }: Props) {
radixApi.useUpdateEnvironmentAlertingConfigMutation();

const enableAlert = handlePromiseWithToast(async () => {
await enableAlertMutation({ appName, envName });
await enableAlertMutation({ appName, envName }).unwrap();
await refetch();
});
const disableAlert = handlePromiseWithToast(async () => {
await disableAlertMutation({ appName, envName });
await disableAlertMutation({ appName, envName }).unwrap();
await refetch();
});
const updateAlert = handlePromiseWithToast(
Expand All @@ -47,7 +47,7 @@ export default function EnvironmentAlerting({ appName, envName }: Props) {
appName,
envName,
updateAlertingConfig,
});
}).unwrap();
await refetch();
setVisibleScrim(false);
}
Expand Down

0 comments on commit 2637aca

Please sign in to comment.