1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-26 17:59:26 +00:00

Merge branch 'fixes' into 'main'

fix(front): fix group settings getting unresponsive because of reactive bug

Closes #1298

See merge request framasoft/mobilizon!1405
This commit is contained in:
Thomas Citharel 2023-06-02 07:51:37 +00:00
commit ceec4a36a4

View file

@ -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,