summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2022-05-20 11:36:35 +0200
committerGitHub <noreply@github.com>2022-05-20 11:36:35 +0200
commit97e78f6788d3c6b1eaebe23bb21763c46e19c861 (patch)
treed25b6a84bde3975a7be6306bd8bae97893a3b639
parent9ea64645e22124fc199e8554db499a350495e729 (diff)
parent2cc6141387bbc6111533d2d241b5baeef9972d5d (diff)
Merge pull request #2744 from sazanof/bug/uncheck-group-if-group-one
When delete last member from group, it is not update data on server
-rw-r--r--src/components/Properties/PropertyGroups.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/Properties/PropertyGroups.vue b/src/components/Properties/PropertyGroups.vue
index 340eb6a3..67e889b1 100644
--- a/src/components/Properties/PropertyGroups.vue
+++ b/src/components/Properties/PropertyGroups.vue
@@ -166,6 +166,11 @@ export default {
contact: this.contact,
groupName,
})
+ const group = this.$store.getters.getGroups.find(search => search.name === groupName)
+ if (group.contacts.length === 0) {
+ this.$emit('update:value', [])
+ }
+
},
/**