// get list of units
(async () => {
let status = null;
if(this.actionType === 'buy') {
status = 1;
} else if(this.actionType === 'fund') {
status = 2;
}
let apiUrl = `${mainSiteUrl}/api/property-units.json?property_nid=${this.pid}`;
if(status) apiUrl += `&status=${status}`;
const { data } = await this.axios.get(apiUrl);
this.setListOfUnits(data);
})();