fix: แก้ เอาเบอร์ติดต่อมาแสดง

This commit is contained in:
Net 2024-04-19 14:30:26 +07:00
parent 550ded4f63
commit 1702ec93d7

View file

@ -179,7 +179,7 @@ function openDialog() {
}
async function fetchBranchById(id: string) {
const res = await branchStore.fetchById(id);
const res = await branchStore.fetchById(id, { includeContact: true });
if (res) {
qrCodeimageUrl.value = res.qrCodeImageUrl;
@ -198,7 +198,7 @@ async function fetchBranchById(id: string) {
zipCode: res.zipCode,
email: res.email,
contactName: res.contactName,
contact: '',
contact: res.contact[0].telephoneNo,
telephoneNo: res.telephoneNo,
longitude: res.longitude,
latitude: res.latitude,