Add lowercase tags when editing tags
This commit is contained in:
parent
800d9c6723
commit
cef9eebbdf
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user