mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Cap NDV Output View Tab Index to prevent rare edge case (#11614)
This commit is contained in:
@@ -386,7 +386,10 @@ const currentOutputIndex = computed(() => {
|
|||||||
return props.overrideOutputs[0];
|
return props.overrideOutputs[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
return outputIndex.value;
|
// In some cases nodes may switch their outputCount while the user still
|
||||||
|
// has a higher outputIndex selected. We could adjust outputIndex directly,
|
||||||
|
// but that loses data as we can keep the user selection if the branch reappears.
|
||||||
|
return Math.min(outputIndex.value, maxOutputIndex.value);
|
||||||
});
|
});
|
||||||
const branches = computed(() => {
|
const branches = computed(() => {
|
||||||
const capitalize = (name: string) => name.charAt(0).toLocaleUpperCase() + name.slice(1);
|
const capitalize = (name: string) => name.charAt(0).toLocaleUpperCase() + name.slice(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user