From e4c90359159ba4198c18d35fcd49e0d905e3f72f Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 6 Sep 2024 16:10:50 +0300 Subject: [PATCH] fix(editor): Fix broken executions view (no-changelog) (#10714) --- packages/editor-ui/src/router.ts | 1 - packages/editor-ui/src/views/NodeView.v2.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ui/src/router.ts b/packages/editor-ui/src/router.ts index 96a189071b..6c6a68b22d 100644 --- a/packages/editor-ui/src/router.ts +++ b/packages/editor-ui/src/router.ts @@ -328,7 +328,6 @@ export const routes: RouteRecordRaw[] = [ default: NodeView, }, meta: { - nodeView: true, middleware: ['authenticated'], middlewareOptions: { authenticated: { diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index f69d9b7eb9..011bbb8297 100644 --- a/packages/editor-ui/src/views/NodeView.v2.vue +++ b/packages/editor-ui/src/views/NodeView.v2.vue @@ -212,7 +212,7 @@ const workflowId = computed(() => { }); const isNewWorkflowRoute = computed(() => route.name === VIEWS.NEW_WORKFLOW || !workflowId.value); -const isWorkflowRoute = computed(() => !!route?.meta?.nodeView); +const isWorkflowRoute = computed(() => !!route?.meta?.nodeView || isDemoRoute.value); const isDemoRoute = computed(() => route.name === VIEWS.DEMO); const isReadOnlyRoute = computed(() => !!route?.meta?.readOnlyCanvas); const isReadOnlyEnvironment = computed(() => {