Skip to content

Commit

Permalink
Resolve missing opName in trace list
Browse files Browse the repository at this point in the history
  • Loading branch information
hanahmily committed Jun 27, 2018
1 parent 07edaad commit 72c76be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Trace/TraceList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TraceList extends PureComponent {
}}
/>
<div className={styles.mainInfo}>
<Ellipsis length={100} tooltip style={{ width: 'initial' }}>{opName.join(' ')}</Ellipsis>
<Ellipsis length={100} tooltip style={{ width: 'initial' }}>{(opName && opName.length > 0) ? opName.join(' ') : '' }</Ellipsis>
<span className={styles.duration}>{`${duration}ms`}</span>
</div>
</div>);
Expand Down

0 comments on commit 72c76be

Please sign in to comment.