Fix fetching attachments on card change
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -114,6 +114,11 @@ export default {
|
||||
return this.card.id
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
card(newCard) {
|
||||
this.$store.dispatch('fetchAttachments', newCard.id)
|
||||
},
|
||||
},
|
||||
created: function() {
|
||||
this.$store.dispatch('fetchAttachments', this.card.id)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user