From cef9eebbdff04e305dbdd3c70b3474e1f997cfee Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 13 Feb 2022 22:41:00 -0600 Subject: [PATCH] Add lowercase tags when editing tags --- web/components/edit-fold-button.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/edit-fold-button.tsx b/web/components/edit-fold-button.tsx index de88f148..bc4805c2 100644 --- a/web/components/edit-fold-button.tsx +++ b/web/components/edit-fold-button.tsx @@ -25,6 +25,7 @@ export function EditFoldButton(props: { fold: Fold; className?: string }) { const [isSubmitting, setIsSubmitting] = useState(false) const tags = parseWordsAsTags(toCamelCase(name) + ' ' + otherTags) + const lowercaseTags = tags.map((tag) => tag.toLowerCase()) const saveDisabled = name === fold.name && @@ -38,6 +39,7 @@ export function EditFoldButton(props: { fold: Fold; className?: string }) { name, about, tags, + lowercaseTags, }) setIsSubmitting(false)