forked from potsda.mn/mobilizon
fix(front): fix group settings getting unresponsive because of reactive bug
Closes #1298 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
b69ffacff5
commit
f1e119cb7a
|
@ -344,11 +344,11 @@ const canShowCopyButton = computed((): boolean => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentAddress = computed({
|
const currentAddress = computed({
|
||||||
get(): IAddress {
|
get(): IAddress | null {
|
||||||
return new Address(editableGroup.value?.physicalAddress);
|
return editableGroup.value?.physicalAddress ?? null;
|
||||||
},
|
},
|
||||||
set(address: IAddress) {
|
set(address: IAddress | null) {
|
||||||
if (editableGroup.value) {
|
if (editableGroup.value && address) {
|
||||||
editableGroup.value = {
|
editableGroup.value = {
|
||||||
...editableGroup.value,
|
...editableGroup.value,
|
||||||
physicalAddress: address,
|
physicalAddress: address,
|
||||||
|
|
Loading…
Reference in a new issue