From f8890689ee3f4034a4a35ef256f8f8cb02c07f31 Mon Sep 17 00:00:00 2001
From: Harshit Singh <73997189+harshit078@users.noreply.github.com>
Date: Sat, 31 Aug 2024 22:47:14 +0530
Subject: [PATCH] fix: Fixed API typo and webhook checkerror (#6779)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Issue
1.There was an Api typo with API under Developers section #6778
2. Webhook lacked an check method for the `TextInput` #6774
## After-
https://github.com/user-attachments/assets/8e2b06bc-308a-48ad-8ecb-9d0a130877bc
---------
Co-authored-by: Charles Bochet
---
.../SettingsDevelopersApiKeyDetail.tsx | 10 ++++----
.../SettingsDevelopersWebhooksNew.tsx | 17 ++++++++++++-
.../utils/url/__tests__/isValidUrl.test.ts | 25 +++++++++++++++++++
.../twenty-front/src/utils/url/isValidUrl.ts | 8 ++++++
4 files changed, 54 insertions(+), 6 deletions(-)
create mode 100644 packages/twenty-front/src/utils/url/__tests__/isValidUrl.test.ts
create mode 100644 packages/twenty-front/src/utils/url/isValidUrl.ts
diff --git a/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx b/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx
index 21919f09a4f5..215eb3145b87 100644
--- a/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx
@@ -136,7 +136,7 @@ export const SettingsDevelopersApiKeyDetail = () => {
{apiKeyToken ? (
<>
@@ -147,8 +147,8 @@ export const SettingsDevelopersApiKeyDetail = () => {
) : (
<>