[Vuejs]-Vue.JS waiting for a for loop to finish in watched property

0👍

allMeetings: async function (){
    const meetingsUUIDs = []
    for (var i = 0; i <this.flatAllMeetings.length; i++) {
       const result = await getPastMeetingUUIDByID(this.flatAllMeetings[i].id)
       meetingsUUIDs.push(result.data)
    }
    Array.prototype.push.apply(this.pastMeetingUUIDs, meetingsUUIDs);
    this.allMeetingStatus = true
}

Leave a comment