mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
rm tags in Card if none
This commit is contained in:
@@ -69,6 +69,9 @@ class Card extends React.Component {
|
||||
}
|
||||
|
||||
renderTags() {
|
||||
if (!this.props.tags || (this.props.tags && this.props.tags.length === 0)) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
<CardTags
|
||||
tags={this.props.tags || []}
|
||||
|
||||
Reference in New Issue
Block a user