From c2bbab6cf697f1cec5f621ca199e04457ae35381 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 30 Nov 2026 21:07:04 +0100 Subject: [PATCH] fix: saving webhooks fails with 404 after deleting an edited webhook (#35322) In a channel's Webhooks dialog, editing a webhook's name and then deleting it made every following Save fail with a 404, and some edits to other webhooks were not saved until the dialog was reopened. Deleting a webhook now also drops its unsaved edits, so Save goes through for the remaining webhooks. Fixes #35321 --- src/lib/components/channel/WebhooksModal.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/channel/WebhooksModal.svelte b/src/lib/components/channel/WebhooksModal.svelte index 697ace722e..097e488bf5 100644 --- a/src/lib/components/channel/WebhooksModal.svelte +++ b/src/lib/components/channel/WebhooksModal.svelte @@ -78,6 +78,7 @@ try { await deleteChannelWebhook(localStorage.token, channel.id, selectedWebhookId); webhooks = webhooks.filter((webhook) => webhook.id !== selectedWebhookId); + delete pendingChanges[selectedWebhookId]; toast.success($i18n.t('Deleted')); } catch (error) { toast.error(`${error}`);