mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-26 06:17:21 +02:00
fix(editor): Add optional chaining to currentWorkflow in NodeSettings (no-changelog) (#11371)
This commit is contained in:
parent
c773181a3a
commit
4ef804c8d3
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user