This commit is contained in:
@@ -578,10 +578,10 @@ async function populateAlternateAddresses(vm) {
|
||||
let unitIdList = [];
|
||||
vm.value.items.forEach(i => {
|
||||
i.units.forEach(async u => {
|
||||
if (u.id != null && !unitIdList.includes(u.id)) {
|
||||
unitIdList.push(u.id);
|
||||
if (u.unitId != null && !unitIdList.includes(u.unitId)) {
|
||||
unitIdList.push(u.unitId);
|
||||
//get address
|
||||
let res = await window.$gz.api.get(`unit/address/${u.id}`);
|
||||
let res = await window.$gz.api.get(`unit/address/${u.unitId}`);
|
||||
if (res.data) {
|
||||
vm.alternateAddresses.push({
|
||||
name: res.data.unit.name,
|
||||
|
||||
Reference in New Issue
Block a user