app/classes/commodity.js
// Assign the geographical area to the measure
Assign the geographical area to the measure
Assign the geographical area to the measure
assign_geographical_areas() {
        this.measures.forEach(m => {
            this.geographical_areas.forEach(g => {
                if (m.geographical_area_id == g.id) {
                    m.geographical_area = g;
                }
            });
        });
    }
assign_geographical_areas ( ) { this . measures . forEach ( m => { this . geographical_areas . forEach ( g => { if ( m . geographical_area_id == g . id ) { m . geographical_area = g ; } } ) ; } ) ; }
Assign the geographical area to the measure
Assign the geographical area to the measure