Improve version saving

This commit is contained in:
2024-09-01 14:43:19 +04:00
parent a158755702
commit 5e25a66af5
4 changed files with 38 additions and 8 deletions
+3 -2
View File
@@ -22,7 +22,6 @@ export default function HandleEdit({
const handleFormSubmit = async e => {
e.preventDefault()
console.log('e', e)
const formattedContent = formatFormContent(e.currentTarget)
@@ -33,13 +32,15 @@ export default function HandleEdit({
userId,
collection,
id,
formattedContent,
content: formattedContent,
setIsErrorAlertOpen,
setSuccess,
setIsSuccessAlertOpen,
setError,
countdownRef
})
setIsOpen(false)
}
if (collection === 'titres') {