don't reset update time when no update was written to db (#6034)

Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
Co-authored-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
backportbot[bot]
2024-06-27 09:57:50 +02:00
committed by GitHub
parent ac58e0e9ac
commit 12dd877a0e

View File

@@ -204,7 +204,6 @@ export default {
},
onUpdate: ({ markdown }) => {
if (this.description === markdown) {
this.descriptionLastEdit = 0
return
}
this.description = markdown
@@ -300,7 +299,9 @@ export default {
return
}
this.descriptionSaving = true
await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description })
if (this.card.id !== undefined) {
await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description })
}
this.$emit('change', this.description)
this.descriptionLastEdit = 0
this.descriptionSaving = false