mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -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 hasForeignCredential = computed(() => props.foreignCredentials.length > 0);
|
||||||
const isHomeProjectTeam = computed(
|
const isHomeProjectTeam = computed(
|
||||||
() => currentWorkflow.value.homeProject?.type === ProjectTypes.Team,
|
() => currentWorkflow.value?.homeProject?.type === ProjectTypes.Team,
|
||||||
);
|
);
|
||||||
const isReadOnly = computed(
|
const isReadOnly = computed(
|
||||||
() => props.readOnly || (hasForeignCredential.value && !isHomeProjectTeam.value),
|
() => props.readOnly || (hasForeignCredential.value && !isHomeProjectTeam.value),
|
||||||
|
|
Loading…
Reference in a new issue