We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ef810 commit 004e5c0Copy full SHA for 004e5c0
src/components/DataTypes/Object.tsx
@@ -26,7 +26,8 @@ function inspectMetadata (value: object) {
26
if (Object.prototype.hasOwnProperty.call(value, Symbol.toStringTag)) {
27
name = (value as any)[Symbol.toStringTag]
28
}
29
- return `${length} Items${name ? ` (${name})` : ''}`
+ const itemsPluralized = length === 1 ? 'Item' : 'Items'
30
+ return `${length} ${itemsPluralized}${name ? ` (${name})` : ''}`
31
32
33
const PreObjectType: FC<DataItemProps<object>> = (props) => {
0 commit comments