feat: validate url format

This commit is contained in:
Rohit
2025-05-28 14:51:09 +05:30
parent d4b59796e2
commit e82d700edb

View File

@@ -133,6 +133,13 @@ export const IntegrationSettingsModal = ({
return false;
}
try {
new URL(url);
} catch {
setUrlError("Please provide a valid URL");
return false;
}
const existingWebhook = settings.webhooks?.find(
(webhook) => webhook.url === url && webhook.id !== excludeId
);