From 30718b9e1b63ad5ed64e3c71a719cd82c17691e0 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 29 May 2024 08:26:42 -0500 Subject: [PATCH] Fix TypeError due to invalid URL (#1206) --- components/text.js | 59 ++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/components/text.js b/components/text.js index 75b2e3cc..42593575 100644 --- a/components/text.js +++ b/components/text.js @@ -244,36 +244,39 @@ export default memo(function Text ({ rel, imgproxyUrls, children, tab, itemId, o paddingRight: '15px' } - const { provider, id, meta } = parseEmbedUrl(href) - - // Youtube video embed - if (provider === 'youtube') { - return ( -
- -
- ) - } - - // Rumble video embed - if (provider === 'rumble') { - return ( -
-
-