Add lowercase tags when editing tags

This commit is contained in:
James Grugett 2022-02-13 22:41:00 -06:00
parent 800d9c6723
commit cef9eebbdf

View File

@ -25,6 +25,7 @@ export function EditFoldButton(props: { fold: Fold; className?: string }) {
const [isSubmitting, setIsSubmitting] = useState(false) const [isSubmitting, setIsSubmitting] = useState(false)
const tags = parseWordsAsTags(toCamelCase(name) + ' ' + otherTags) const tags = parseWordsAsTags(toCamelCase(name) + ' ' + otherTags)
const lowercaseTags = tags.map((tag) => tag.toLowerCase())
const saveDisabled = const saveDisabled =
name === fold.name && name === fold.name &&
@ -38,6 +39,7 @@ export function EditFoldButton(props: { fold: Fold; className?: string }) {
name, name,
about, about,
tags, tags,
lowercaseTags,
}) })
setIsSubmitting(false) setIsSubmitting(false)