mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08: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:
parent
0e044f7684
commit
6d25eed050
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue