Skip to content

Commit

Permalink
Merge a9558db into 9d60f1c
Browse files Browse the repository at this point in the history
  • Loading branch information
JannoTilk committed Nov 30, 2021
2 parents 9d60f1c + a9558db commit 35d1a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/js/components/DataTypes/Object.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ class RjvObject extends React.PureComponent {
}

const { collapseStringsAfterLength } = this.props;

if (Array.isArray(value)) {
return '[...]';
}

if (value.length > collapseStringsAfterLength) {
return value.substring(0, collapseStringsAfterLength) + '...';
}
Expand Down

0 comments on commit 35d1a00

Please sign in to comment.