problems: don't show ':' in tags if value omitted, fixes #579

This commit is contained in:
Alexander Zobnin
2019-02-11 13:36:51 +03:00
parent 38bf47f832
commit b292426cb5

View File

@@ -108,7 +108,10 @@ export default class EventTag extends PureComponent<EventTagProps> {
<span className={`label label-tag zbx-tag ${highlight ? 'highlighted' : ''}`}
style={style}
onClick={this.handleClick}>
{tag.tag}: {tag.value}
{tag.value ?
`${tag.tag}: ${tag.value}` :
`${tag.tag}`
}
</span>
);
}