Skip to content

Commit

Permalink
Merge b11dcf1 into 47fafb1
Browse files Browse the repository at this point in the history
  • Loading branch information
JannoTilk committed Nov 29, 2021
2 parents 47fafb1 + b11dcf1 commit 483fece
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 483fece

Please sign in to comment.