Skip to content

Commit 231b6e5

Browse files
authored
Merge pull request #6035 from nextcloud/backport/6005/stable28
[stable28] don't reset update time when no update was written to db
2 parents 63846cb + 8398dcd commit 231b6e5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/card/Description.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ export default {
204204
},
205205
onUpdate: ({ markdown }) => {
206206
if (this.description === markdown) {
207-
this.descriptionLastEdit = 0
208207
return
209208
}
210209
this.description = markdown
@@ -300,7 +299,9 @@ export default {
300299
return
301300
}
302301
this.descriptionSaving = true
303-
await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description })
302+
if (this.card.id !== undefined) {
303+
await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description })
304+
}
304305
this.$emit('change', this.description)
305306
this.descriptionLastEdit = 0
306307
this.descriptionSaving = false

0 commit comments

Comments
 (0)