correct location name in navigation - #1922

This commit is contained in:
Laurent GAY
2025-12-31 17:55:06 +01:00
parent cf1918d2c2
commit 0810e0dc80
3 changed files with 53 additions and 35 deletions

View File

@@ -288,6 +288,15 @@ const setSelected = (newValue: IAddress | null) => {
if (!newValue) return;
console.debug("setting selected to model value");
Object.assign(selected, newValue);
if (addressData.value === undefined || addressData.value?.length == 0) {
addressData.value = [
{
label: addressFullName(selected),
value: queryTextWithDefault.value,
},
];
keyaddress.value = keyaddress.value + 1;
}
emit("update:modelValue", selected);
};