From 809223204a107c9055dd93b2e6fde0dde9644e61 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 10 Dec 2024 10:30:37 +0100 Subject: [PATCH] fix(frontend): update widget visibility condition --- frontend/src/app-components/widget/ChatWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app-components/widget/ChatWidget.tsx b/frontend/src/app-components/widget/ChatWidget.tsx index 61949259..1d5a3568 100644 --- a/frontend/src/app-components/widget/ChatWidget.tsx +++ b/frontend/src/app-components/widget/ChatWidget.tsx @@ -27,7 +27,7 @@ export const ChatWidget = () => { const pathname = usePathname(); const { apiUrl } = useConfig(); const { isAuthenticated } = useAuth(); - const isVisualEditor = pathname === `/${RouterType.VISUAL_EDITOR}`; + const isVisualEditor = pathname.startsWith(`/${RouterType.VISUAL_EDITOR}`); const allowedDomainsSetting = useSetting(SETTING_TYPE, "allowed_domains"); const themeColorSetting = useSetting(SETTING_TYPE, "theme_color"); const [key, setKey] = useState(generateId());