Skip to content

Commit d92e8a0

Browse files
committed
fix: revalidate after successfully webhook test
1 parent 61c064c commit d92e8a0

File tree

2 files changed

+4
-0
lines changed
  • client/app
    • (bots)/bots/[id]/manage/components/Webhook
    • (servers)/servers/[id]/manage/components/Webhook

2 files changed

+4
-0
lines changed

client/app/(bots)/bots/[id]/manage/components/Webhook/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export default function Webhook({ botId, webhookURL: currentWebhookURL, webhookT
129129
});
130130

131131
setWebhookTestLoading(false);
132+
133+
revalidateBot(botId);
132134
} catch (error) {
133135
toast.error(<TestWebhookFailedToastContent />, {
134136
id: testWebhookToastId.current,

client/app/(servers)/servers/[id]/manage/components/Webhook/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export default function Webhook({ serverId, webhookURL: currentWebhookURL, webho
129129
});
130130

131131
setWebhookTestLoading(false);
132+
133+
revalidateServer(serverId);
132134
} catch (error) {
133135
toast.error(<TestWebhookFailedToastContent />, {
134136
id: testWebhookToastId.current,

0 commit comments

Comments
 (0)