From d1ffc58aa4947e5b9f956568061a981c8ab37e65 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Tue, 15 Nov 2022 13:28:15 +0200 Subject: [PATCH] fix: Change feature flag for starting at empty WF state for PH experiments (no-changelog) (#4606) --- packages/editor-ui/src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/router.ts b/packages/editor-ui/src/router.ts index e2b7e9b4f8..fa4d1904dd 100644 --- a/packages/editor-ui/src/router.ts +++ b/packages/editor-ui/src/router.ts @@ -74,7 +74,7 @@ const router = new Router({ name: VIEWS.HOMEPAGE, meta: { getRedirect() { - const startOnNewWorkflowRouteFlag = window.posthog?.isFeatureEnabled?.('start-at-wf-empty-state'); + const startOnNewWorkflowRouteFlag = window.posthog?.getFeatureFlag?.('start-at-wf-empty-state') === 'test'; return { name: startOnNewWorkflowRouteFlag ? VIEWS.NEW_WORKFLOW : VIEWS.WORKFLOWS }; }, permissions: {