Skip to content

Commit

Permalink
⚡ Use only JSON-Data for display-size-calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
janober committed May 23, 2020
1 parent d79f22d commit c6281f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/editor-ui/src/components/RunData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6281f2

Please sign in to comment.