From 870e9e6f52883a811b3291e4375501c4d44c3e62 Mon Sep 17 00:00:00 2001 From: Arpit Date: Tue, 24 Oct 2023 15:46:04 +0530 Subject: [PATCH] fixes: on version changed the preview link should also update (#8009) --- frontend/src/Editor/EditorFunc.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/EditorFunc.jsx b/frontend/src/Editor/EditorFunc.jsx index 9f32a53a9a..526bd7b49d 100644 --- a/frontend/src/Editor/EditorFunc.jsx +++ b/frontend/src/Editor/EditorFunc.jsx @@ -1596,7 +1596,7 @@ const EditorComponent = (props) => { setAppPreviewLink(appVersionPreviewLink); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [slug]); + }, [slug, currentVersionId]); const deviceWindowWidth = 450;