mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Do not add large amounts of data to variable selector
This commit is contained in:
@@ -468,12 +468,27 @@ export default mixins(
|
||||
tempOutputData = this.getNodeOutputData(runData, parentNode[0], filterText, itemIndex, 0, 'main', outputIndex) as IVariableSelectorOption[];
|
||||
|
||||
if (tempOutputData) {
|
||||
currentNodeData.push(
|
||||
{
|
||||
name: 'Input Data',
|
||||
options: this.sortOptions(tempOutputData),
|
||||
}
|
||||
);
|
||||
if (JSON.stringify(tempOutputData).length < 102400) {
|
||||
// Data is reasonable small (< 100kb) so add it
|
||||
currentNodeData.push(
|
||||
{
|
||||
name: 'Input Data',
|
||||
options: this.sortOptions(tempOutputData),
|
||||
}
|
||||
);
|
||||
} else {
|
||||
// Data is to large so do not add
|
||||
currentNodeData.push(
|
||||
{
|
||||
name: 'Input Data',
|
||||
options: [
|
||||
{
|
||||
name: '[Data to large]',
|
||||
}
|
||||
],
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user