From 12dd877a0e411004c1bd7989f6209fec91afcb02 Mon Sep 17 00:00:00 2001 From: "backportbot[bot]" <63340225+backportbot[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 09:57:50 +0200 Subject: [PATCH] don't reset update time when no update was written to db (#6034) Signed-off-by: grnd-alt Co-authored-by: grnd-alt --- src/components/card/Description.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index c5fb53152..58d5c9e61 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -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