Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/DataTypes/Object.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
if (Object.prototype.hasOwnProperty.call(value, Symbol.toStringTag)) {
name = (value as any)[Symbol.toStringTag]
}
return `${length} Items${name ? ` (${name})` : ''}`
const itemsPluralized = length === 1 ? "Item" : "Items";

Check failure on line 29 in src/components/DataTypes/Object.tsx

View workflow job for this annotation

GitHub Actions / Running vitest

Strings must use singlequote

Check failure on line 29 in src/components/DataTypes/Object.tsx

View workflow job for this annotation

GitHub Actions / Running vitest

Strings must use singlequote

Check failure on line 29 in src/components/DataTypes/Object.tsx

View workflow job for this annotation

GitHub Actions / Running vitest

Extra semicolon
return `${length} ${itemsPluralized}${name ? ` (${name})` : ''}`
}

const PreObjectType: FC<DataItemProps<object>> = (props) => {
Expand Down
Loading