problems: don't show ':' in tags if value omitted, fixes #579
This commit is contained in:
@@ -108,7 +108,10 @@ export default class EventTag extends PureComponent<EventTagProps> {
|
|||||||
<span className={`label label-tag zbx-tag ${highlight ? 'highlighted' : ''}`}
|
<span className={`label label-tag zbx-tag ${highlight ? 'highlighted' : ''}`}
|
||||||
style={style}
|
style={style}
|
||||||
onClick={this.handleClick}>
|
onClick={this.handleClick}>
|
||||||
{tag.tag}: {tag.value}
|
{tag.value ?
|
||||||
|
`${tag.tag}: ${tag.value}` :
|
||||||
|
`${tag.tag}`
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user