diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-05-20 11:36:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 11:36:35 +0200 |
commit | 97e78f6788d3c6b1eaebe23bb21763c46e19c861 (patch) | |
tree | d25b6a84bde3975a7be6306bd8bae97893a3b639 | |
parent | 9ea64645e22124fc199e8554db499a350495e729 (diff) | |
parent | 2cc6141387bbc6111533d2d241b5baeef9972d5d (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.vue | 5 |
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', []) + } + }, /** |