Skip to content

Commit de368fa

Browse files
committed
fix(GroupNavigationItem): incorrect group dropping handling
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
1 parent a35fc6a commit de368fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/AppNavigation/GroupNavigationItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ export default {
167167
if (contactFromStore && !this.isInGroup(contactFromStore.groups, group.id)) {
168168
const contact = this.$store.getters.getContact(Buffer.from(`${contactFromDropData.uid}~${contactFromDropData.addressbookId}`, 'utf-8').toString('base64'))
169169
await this.$store.dispatch('updateContactGroups', {
170-
groupNames: [...contactFromStore.groups, group.id],
170+
groupNames: [...contactFromStore.groups, group.name],
171171
contact,
172172
})
173173
const localContact = Object.assign(
174174
Object.create(Object.getPrototypeOf(contact)),
175175
contact,
176176
)
177-
localContact.groups = [...contactFromStore.groups, group.id]
177+
localContact.groups = [...contactFromStore.groups, group.name]
178178
await this.$store.dispatch('updateContact', localContact)
179179
}
180180
} catch (e) {

0 commit comments

Comments
 (0)