mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
⚡ Use only JSON-Data for display-size-calculation
This commit is contained in:
@@ -450,7 +450,10 @@ export default mixins(
|
|||||||
|
|
||||||
// Check how much data there is to display
|
// Check how much data there is to display
|
||||||
const inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
const inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
||||||
this.dataSize = JSON.stringify(inputData).length;
|
|
||||||
|
const jsonItems = inputData.map(item => item.json);
|
||||||
|
|
||||||
|
this.dataSize = JSON.stringify(jsonItems).length;
|
||||||
|
|
||||||
if (this.dataSize < 204800) {
|
if (this.dataSize < 204800) {
|
||||||
// Data is reasonable small (< 200kb) so display it directly
|
// Data is reasonable small (< 200kb) so display it directly
|
||||||
|
|||||||
Reference in New Issue
Block a user