tags: keep placeholder if only special tags

This commit is contained in:
zeppi 2021-02-04 22:27:19 -05:00 committed by jessopb
parent bbf92b06f0
commit c784c5393d

View file

@ -168,7 +168,7 @@ export default function TagsSearch(props: Props) {
)}
</label>
<ul className="tags--remove">
{!tagsPassedIn.length && <Tag key={`placeholder-tag`} name={'example'} disabled type={'remove'} />}
{countWithoutSpecialTags === 0 && <Tag key={`placeholder-tag`} name={'example'} disabled type={'remove'} />}
{Boolean(tagsPassedIn.length) &&
tagsPassedIn
.filter(t => !UTILITY_TAGS.includes(t.name))