fix(task): do not allow saving an empty description

Resolves https://github.com/go-vikunja/vikunja/issues/338
This commit is contained in:
kolaente
2024-10-13 19:38:42 +02:00
parent 21af73ff93
commit 38964ace04

View File

@@ -495,7 +495,8 @@ watch(
)
function bubbleNow() {
if (editor.value?.getHTML() === modelValue) {
if (editor.value?.getHTML() === modelValue ||
(editor.value?.getHTML() === '<p></p>') && modelValue === '') {
return
}