Skip to content

Commit 6390a7c

Browse files
Fix display of broader types (#88)
Fixes #87.
1 parent c042f28 commit 6390a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestBench.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default class TestBench extends React.Component {
232232
checked={current === t.id}
233233
onChange={this.onReconTypeChange}>
234234
{t.name}<br />
235-
{Array.isArray(t.broader) && t.broader.length && <span className="reconTypeId">{t.broader.map(e => e.id).join(', ')} &gt; </span>}<span className="reconTypeId">{t.id}</span>
235+
{Array.isArray(t.broader) && t.broader.length > 0 && <span className="reconTypeId">{t.broader.map(e => e.id).join(', ')} &gt; </span>}<span className="reconTypeId">{t.id}</span>
236236
</Radio>
237237
);
238238
if (this.hasTypeSuggest) {

0 commit comments

Comments
 (0)