From c6281f2b0ef3f29f9e93b52948c05141babb16ae Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 23 May 2020 23:54:56 +0200 Subject: [PATCH] :zap: Use only JSON-Data for display-size-calculation --- packages/editor-ui/src/components/RunData.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index 245f31b5009ab..0727699e2c6f3 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -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