From 45c41dc3525eb38554a9e74bd3f72aacca514d48 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Mon, 17 Dec 2018 14:47:53 +0000 Subject: [PATCH] rm tags in Card if none --- src/components/Card.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Card.jsx b/src/components/Card.jsx index 94d66db..3e6594f 100644 --- a/src/components/Card.jsx +++ b/src/components/Card.jsx @@ -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 (