Skip to content

Commit

Permalink
fix: State Inconsistency issue on webhook edit modal (calcom#14544)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit91848 authored Apr 12, 2024
1 parent c79d089 commit b41b830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/features/webhooks/pages/webhook-edit-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function Component({ webhookId }: { webhookId: string }) {
const editWebhookMutation = trpc.viewer.webhook.edit.useMutation({
async onSuccess() {
await utils.viewer.webhook.list.invalidate();
await utils.viewer.webhook.get.invalidate({ webhookId });
showToast(t("webhook_updated_successfully"), "success");
router.back();
},
Expand Down

0 comments on commit b41b830

Please sign in to comment.