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:
Thomas Citharel
2023-12-03 18:05:52 +01:00
parent 8795576865
commit 32caebb1d0
3 changed files with 8 additions and 2 deletions

View File

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