How can I group my data by CustomerID?
It's does not work, I am trying different way but I think I don't understand this structure
This is my code:
function CustomerGroup() {
this.$http.post(auth.API_URL + 'api/ProblemsSupports/ProblemsList', null, {
    headers: {
        'Authorization': 'Bearer ' + auth.getAuthHeader()
    }
}).then((response) => {
    this.problemitems = response.body
    const map = this.problemitems.map(e => (map[e.CustomerID] = map[e.CustomerID]))
    return map
    this.progress = false
}, (response) => {
    if (response.status === 0) {
        this.text1 = ' !!!'
        this.snackbar = true
        this.progress = false
    } else {
        this.text1 = '!!!!!!'
        this.snackbar = true
        this.progress = false
    }
})
}
 
     
    