Skip to content

Scheduling infrastructure for absolutely everyone.

fix: State Inconsistency issue on webhook edit modal (#14544)

Amit Sharmab41b830086e0
diff --git a/packages/features/webhooks/pages/webhook-edit-view.tsx b/packages/features/webhooks/pages/webhook-edit-view.tsx
index d7c0b8d53f7..3440194d0a8 100644
--- a/packages/features/webhooks/pages/webhook-edit-view.tsx
+++ b/packages/features/webhooks/pages/webhook-edit-view.tsx
@@ -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();
},