From b8b8ba9586a62f2e6c14bcaf7d89b00cf08e26ce Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Fri, 6 Nov 2026 00:20:18 +0100 Subject: [PATCH] fix: Webhooks window resets whenever a message arrives in the channel (#33776) With a channel open and its Webhooks window open from Edit Channel, every new message in that channel sent the window back to the webhook list, including a post from the webhook itself. The selected webhook closed and a changed name or image that was not saved yet was lost. The window now resets only when it opens, so new messages no longer interrupt an edit. Fixes #33775 --- src/lib/components/channel/WebhooksModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/channel/WebhooksModal.svelte b/src/lib/components/channel/WebhooksModal.svelte index 00745e5081..6a0a24f2c3 100644 --- a/src/lib/components/channel/WebhooksModal.svelte +++ b/src/lib/components/channel/WebhooksModal.svelte @@ -87,7 +87,7 @@ showDeleteConfirmDialog = false; }; - $: if (show && channel) { + $: if (show) { loadWebhooks(); selectedWebhookId = null; pendingChanges = {};