Skip to content

Commit

Permalink
fix(fe2): Up limit on objectKeys in ViewerSelectionObject (#3905)
Browse files Browse the repository at this point in the history
* Up limit to 100

* Add comment
  • Loading branch information
andrewwallacespeckle authored Jan 28, 2025
1 parent 11993c7 commit 7b2bf94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend-2/components/viewer/selection/Object.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ const keyValuePairs = computed(() => {
arrayLength = arr.length
if (arr.length > 0) {
innerType = Array.isArray(arr[0]) ? 'array' : typeof arr[0]
arrayPreview = arr.slice(0, 3).join(', ')
if (arr.length > 10) arrayPreview += ' ...' // in case truncate doesn't hit
// We truncate this above with css - but limit to 100 to limit dom size
arrayPreview = arr.slice(0, 100).join(', ')
}
}
Expand Down

0 comments on commit 7b2bf94

Please sign in to comment.