From 917dea8fda1c674e7ef4c05a399118a7a683ab63 Mon Sep 17 00:00:00 2001 From: Artem Zagorodnyuk Date: Fri, 4 Oct 2024 15:16:07 +0300 Subject: [PATCH] fix: analytics script configuration is not updated when api key is generated gf-597 (#598) --- .../setup-analytics-modal/setup-analytics-modal.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/frontend/src/pages/project/libs/components/setup-analytics-modal/setup-analytics-modal.tsx b/apps/frontend/src/pages/project/libs/components/setup-analytics-modal/setup-analytics-modal.tsx index 554d3def..1ad3f234 100644 --- a/apps/frontend/src/pages/project/libs/components/setup-analytics-modal/setup-analytics-modal.tsx +++ b/apps/frontend/src/pages/project/libs/components/setup-analytics-modal/setup-analytics-modal.tsx @@ -131,6 +131,13 @@ const SetupAnalyticsModal = ({ handleValueSet("analyticsScript", analyticsScript); }, [handleValueSet, analyticsScript]); + useEffect(() => { + handleValueSet( + "analyticsScriptConfiguration", + analyticsScriptConfiguration, + ); + }, [handleValueSet, analyticsScriptConfiguration]); + return (