This commit is contained in:
claire bontempo
2022-10-20 09:54:54 -07:00
committed by GitHub
parent 9c1930ac98
commit 87a46651c2
4 changed files with 3 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ export default class InfoTableItemArray extends Component {
get displayArrayTruncated() {
let { displayArray } = this.args;
if (!displayArray) return null;
if ((displayArray.length >= 10) & !this.args.doNotTruncate) {
if (displayArray.length >= 10 && !this.args.doNotTruncate) {
// if array greater than 10 in length only display the first 5
return displayArray.slice(0, 5);
}