mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
⚡ Use only JSON-Data for display-size-calculation
This commit is contained in:
parent
d79f22d0db
commit
c6281f2b0e
|
@ -450,7 +450,10 @@ export default mixins(
|
|||
|
||||
// Check how much data there is to display
|
||||
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) {
|
||||
// Data is reasonable small (< 200kb) so display it directly
|
||||
|
|
Loading…
Reference in a new issue