diff --git a/src/components/Dashboard/common/TagsDisplay.jsx b/src/components/Dashboard/common/TagsDisplay.jsx
index fa34894..ebdaaf2 100644
--- a/src/components/Dashboard/common/TagsDisplay.jsx
+++ b/src/components/Dashboard/common/TagsDisplay.jsx
@@ -4,14 +4,25 @@ import PropTypes from 'prop-types'
const { Text } = Typography
-const TagsDisplay = ({ tags = [], style }) => {
- if (tags.length == 0) {
+const TagsDisplay = ({ tags, style }) => {
+ let tagArray = []
+ if (typeof tags === 'string') {
+ tagArray = [tags]
+ } else if (Array.isArray(tags)) {
+ tagArray = tags
+ }
+
+ if (
+ !tagArray ||
+ tagArray.length === 0 ||
+ (tagArray.length === 1 && !tagArray[0])
+ ) {
return n/a
}
return (
- {tags.map((tag, index) => (
+ {tagArray.map((tag, index) => (
{tag}