From 226dce9d945f88b80a183e712caae32dbe8d9abf Mon Sep 17 00:00:00 2001 From: akanshaaaa19 Date: Wed, 12 Jun 2024 15:36:05 +0530 Subject: [PATCH] fixed the validation of url --- src/containers/InteractiveMessage/InteractiveMessage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/InteractiveMessage/InteractiveMessage.tsx b/src/containers/InteractiveMessage/InteractiveMessage.tsx index 295af963c..6234d7607 100644 --- a/src/containers/InteractiveMessage/InteractiveMessage.tsx +++ b/src/containers/InteractiveMessage/InteractiveMessage.tsx @@ -286,7 +286,7 @@ export const InteractiveMessage = () => { if (!dynamicMedia && (type === '' || type) && attachmentURL) { validateURL(attachmentURL); } - }, [type, attachmentURL]); + }, [type, attachmentURL, dynamicMedia]); const handleAddInteractiveTemplate = ( addFromTemplate: boolean,