handleAllShow(e, r) {
        e.preventDefault();
        let locsToDelete = [];
        for (let i = 0; i < r.length; i++) {
            locsToDelete.push(r[i].location);
        }
        this.setState({allShow: true, allRecipientsDelete: r, allLocationsDelete: locsToDelete});
    }
// For deleting all recipients and associated locations
For deleting all recipients and associated locations
For deleting all recipients and associated locations
handleAllShow(e, r) {
        e.preventDefault();
        let locsToDelete = [];
        for (let i = 0; i < r.length; i++) {
            locsToDelete.push(r[i].location);
        }
        this.setState({allShow: true, allRecipientsDelete: r, allLocationsDelete: locsToDelete});
    }
handleAllShow ( e , r ) { e . preventDefault ( ) ; let locsToDelete = [ ] ; for ( let i = 0 ; i < r . length ; i ++ ) { locsToDelete . push ( r [ i ] . location ) ; } this . setState ( { allShow : true , allRecipientsDelete : r , allLocationsDelete : locsToDelete } ) ; }
For deleting all recipients and associated locations
For deleting all recipients and associated locations