mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(editor): switch initial route based on feature flag (#4383)
* feat: switch initial route based on feature flag * style: change code to optional chaining
This commit is contained in:
@@ -69,7 +69,9 @@ const router = new Router({
|
||||
name: VIEWS.HOMEPAGE,
|
||||
meta: {
|
||||
getRedirect(store: Store<IRootState>) {
|
||||
return { name: VIEWS.WORKFLOWS };
|
||||
const startOnNewWorkflowRouteFlag = window.posthog?.isFeatureEnabled?.('start-at-wf-empty-state');
|
||||
|
||||
return { name: startOnNewWorkflowRouteFlag ? VIEWS.NEW_WORKFLOW : VIEWS.WORKFLOWS };
|
||||
},
|
||||
permissions: {
|
||||
allow: {
|
||||
|
||||
Reference in New Issue
Block a user