fix: tags input color

This commit is contained in:
MTG2000
2022-10-05 15:15:42 +03:00
parent b4c5e24c52
commit 48da38bffc

View File

@@ -52,8 +52,9 @@ export default function TagsInput({
const maxReached = value.length >= max;
const currentPlaceholder = props.placeholder ?? <div className="flex gap-8 items-center text-gray-500">
{maxReached ? '' : value.length > 0 ? "Add Another..." : placeholder} </div>
const currentPlaceholder = maxReached ? '' : value.length > 0 ? "Add Another..." : placeholder;
const tagsOptions = !maxReached ? (officalTags.data?.officialTags ?? []).filter(t => !value.some((v) => v.title === t.title)).map(transformer.tagToOption) : [];