fix: Make sure to always update card description when navigating awayfix

fix #5254
fix #2705

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-11-12 12:22:42 +01:00
parent 587b44f7b9
commit 29d5913e8b
2 changed files with 21 additions and 5 deletions

View File

@@ -119,8 +119,10 @@ export default {
this.initialize()
},
methods: {
descriptionChanged(newDesc) {
this.$store.dispatch('updateCardDesc', { ...this.card, description: newDesc })
async descriptionChanged(newDesc) {
if (newDesc === this.copiedCard.description) {
return
}
this.copiedCard.description = newDesc
},
async initialize() {