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 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user