mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-15 06:47:29 -08:00
fix(editor): Cap NDV Output View Tab Index to prevent rare edge case (#11614)
This commit is contained in:
parent
d17d76a85d
commit
a6c8ee4a82
|
@ -386,7 +386,10 @@ const currentOutputIndex = computed(() => {
|
|||
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 capitalize = (name: string) => name.charAt(0).toLocaleUpperCase() + name.slice(1);
|
||||
|
|
Loading…
Reference in a new issue