From f1e119cb7ad580dfab73de3083f20a7303822888 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 2 Jun 2023 09:40:12 +0200 Subject: [PATCH] fix(front): fix group settings getting unresponsive because of reactive bug Closes #1298 Signed-off-by: Thomas Citharel --- js/src/views/Group/GroupSettings.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/views/Group/GroupSettings.vue b/js/src/views/Group/GroupSettings.vue index 453da47ee..322ba189a 100644 --- a/js/src/views/Group/GroupSettings.vue +++ b/js/src/views/Group/GroupSettings.vue @@ -344,11 +344,11 @@ const canShowCopyButton = computed((): boolean => { }); const currentAddress = computed({ - get(): IAddress { - return new Address(editableGroup.value?.physicalAddress); + get(): IAddress | null { + return editableGroup.value?.physicalAddress ?? null; }, - set(address: IAddress) { - if (editableGroup.value) { + set(address: IAddress | null) { + if (editableGroup.value && address) { editableGroup.value = { ...editableGroup.value, physicalAddress: address,