From b41b830086e0015957b86542d83f454918e66e42 Mon Sep 17 00:00:00 2001 From: Amit Sharma <74371312+Amit91848@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:08:58 +0530 Subject: [PATCH] fix: State Inconsistency issue on webhook edit modal (#14544) --- packages/features/webhooks/pages/webhook-edit-view.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/features/webhooks/pages/webhook-edit-view.tsx b/packages/features/webhooks/pages/webhook-edit-view.tsx index d7c0b8d53f..3440194d0a 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(); },