fix: Update associations when a label is updated (#3046)
This commit is contained in:
parent
aaadd61e09
commit
b59e73b10b
7 changed files with 124 additions and 5 deletions
|
@ -24,12 +24,12 @@ export default {
|
|||
|
||||
computed: {
|
||||
savedLabels() {
|
||||
const result = this.$store.getters['contactLabels/getContactLabels'](
|
||||
this.contactId
|
||||
const availableContactLabels = this.$store.getters[
|
||||
'contactLabels/getContactLabels'
|
||||
](this.contactId);
|
||||
return this.allLabels.filter(({ title }) =>
|
||||
availableContactLabels.includes(title)
|
||||
);
|
||||
return result.map(value => {
|
||||
return this.allLabels.find(label => label.title === value);
|
||||
});
|
||||
},
|
||||
|
||||
...mapGetters({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue