From 4ef804c8d3dfedc43709683e71bb992b405eb522 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 1 Nov 2024 15:36:32 +0200 Subject: [PATCH] fix(editor): Add optional chaining to `currentWorkflow` in NodeSettings (no-changelog) (#11371) --- packages/editor-ui/src/components/NodeSettings.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/NodeSettings.vue b/packages/editor-ui/src/components/NodeSettings.vue index 6ae5412b94..7c07cd5006 100644 --- a/packages/editor-ui/src/components/NodeSettings.vue +++ b/packages/editor-ui/src/components/NodeSettings.vue @@ -124,7 +124,7 @@ const currentWorkflow = computed(() => ); const hasForeignCredential = computed(() => props.foreignCredentials.length > 0); const isHomeProjectTeam = computed( - () => currentWorkflow.value.homeProject?.type === ProjectTypes.Team, + () => currentWorkflow.value?.homeProject?.type === ProjectTypes.Team, ); const isReadOnly = computed( () => props.readOnly || (hasForeignCredential.value && !isHomeProjectTeam.value),