fix: saving an event webhook hides the reason it was rejected (#35265)

Admin Settings > Events rejects some webhooks, for example a URL on a local or container host while ENABLE_LOCAL_WEB_FETCH is off, and the toast only ever said "Failed to save webhook". The server already explains the problem ("The URL you provided is invalid. Please double-check and try again."), and that message now shows instead. Turning a webhook on or off reports its errors the same way.

Fixes #35264
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-30 18:43:39 +04:00
1 parent 2c36482e1d
commit d282bef94c
1 file changed
+2 -2
+2 -2
View File
@@ -1268,7 +1268,7 @@ export const createEventWebhook = async (
})
.catch((err) => {
console.error(err);
error = err;
error = err?.detail ?? err;
return null;
});
@@ -1300,7 +1300,7 @@ export const updateEventWebhook = async (
})
.catch((err) => {
console.error(err);
error = err;
error = err?.detail ?? err;
return null;
});