fix: prevent sending group physical address if it's empty and allow empty text for timezone
As old addresses don't hold TZ information Closes #1357 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -345,7 +345,7 @@ const currentAddress = computed({
|
||||
return editableGroup.value?.physicalAddress ?? null;
|
||||
},
|
||||
set(address: IAddress | null) {
|
||||
if (editableGroup.value && address) {
|
||||
if (editableGroup.value && address && (address.id || address.geom)) {
|
||||
editableGroup.value = {
|
||||
...editableGroup.value,
|
||||
physicalAddress: address,
|
||||
|
||||
Reference in New Issue
Block a user