mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08: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 a new issue