tags: keep placeholder if only special tags
This commit is contained in:
parent
bbf92b06f0
commit
c784c5393d
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ export default function TagsSearch(props: Props) {
|
||||||
)}
|
)}
|
||||||
</label>
|
</label>
|
||||||
<ul className="tags--remove">
|
<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) &&
|
{Boolean(tagsPassedIn.length) &&
|
||||||
tagsPassedIn
|
tagsPassedIn
|
||||||
.filter(t => !UTILITY_TAGS.includes(t.name))
|
.filter(t => !UTILITY_TAGS.includes(t.name))
|
||||||
|
|
Loading…
Add table
Reference in a new issue