mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-17 18:37:25 +02:00
fix(editor): Add optional chaining to currentWorkflow in NodeSettings (no-changelog) (#11371)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user