Skip to content

Commit 247b3aa

Browse files
Anemyaddaleax
andauthored
Update packages/compass-data-modeling/src/components/diagram-editor.tsx
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 21ef0ae commit 247b3aa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/compass-data-modeling/src/components/diagram-editor.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ function getFieldTypeDisplay(field: MongoDBJSONSchema) {
9595
return field.bsonType;
9696
}
9797

98-
const typesString = field.bsonType.reduce(
99-
(acc, curr) => (acc ? `${acc}, ${curr}` : curr),
100-
''
101-
);
98+
const typesString = field.bsonType.join(', ');
10299

103100
// We show `mixed` with a tooltip when multiple bsonTypes were found.
104101
return (

0 commit comments

Comments
 (0)