rm tags in Card if none

This commit is contained in:
Lachlan Kermode
2018-12-17 14:47:53 +00:00
parent de88334386
commit 45c41dc352

View File

@@ -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 || []}