diff options
author | Mikhail Sazanov <m@sazanof.ru> | 2022-05-20 11:41:49 +0300 |
---|---|---|
committer | Mikhail Sazanov <m@sazanof.ru> | 2022-05-20 11:41:49 +0300 |
commit | 2cc6141387bbc6111533d2d241b5baeef9972d5d (patch) | |
tree | e4829b5c92d3a2e9be2fb302a12ad7e1192357d0 /src/components | |
parent | 131b57ac624ad42e2bc2c4400d77734358ac9d2e (diff) |
When delete last member from group, it is not update data on server
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
Diffstat (limited to 'src/components')
-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', []) + } + }, /** |