From 1b2088c0a9014afeff0769b70e28becd8d238169 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20PAILHAREY?= <rpailharey@grandlyon.com>
Date: Fri, 24 Mar 2023 09:20:39 +0000
Subject: [PATCH] chore(release): fixed undefined links in newsletter

---
 src/components/Editing/CustomEditor.tsx | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/components/Editing/CustomEditor.tsx b/src/components/Editing/CustomEditor.tsx
index 960aa784..0018458f 100644
--- a/src/components/Editing/CustomEditor.tsx
+++ b/src/components/Editing/CustomEditor.tsx
@@ -30,11 +30,6 @@ const CustomEditor: React.FC<CustomEditorProps> = ({
         const alt = data.alt ? data.alt : ''
         return `<p style="text-align:${textAlign};"><img src="${data.src}" alt="${alt}" style="height: ${data.height};width: ${data.width}"/></p>`
       }
-      if (type === 'LINK') {
-        return `<a href=${data.href ? data.href : data.url} title=${
-          data.title
-        }>${data.title}</a>`
-      }
     }
     return state.getCurrentContent().hasText()
       ? draftToHtml(
-- 
GitLab