|
|
@@ -9,6 +9,7 @@ import nuts from '../nuts';
|
|
|
@Injectable({providedIn: 'root'})
|
|
|
export class AdjusterService {
|
|
|
nutsCodeRecordRelations = {};
|
|
|
+ attractivity;
|
|
|
factors: any = [
|
|
|
{
|
|
|
name: 'Natural',
|
|
|
@@ -81,8 +82,8 @@ export class AdjusterService {
|
|
|
}),
|
|
|
})
|
|
|
.toPromise()
|
|
|
- .then((response: any) => {
|
|
|
- this.attractivity = response.data;
|
|
|
+ .then((data: any) => {
|
|
|
+ this.attractivity = data;
|
|
|
let max = 0;
|
|
|
this.attractivity.forEach((a) => {
|
|
|
if (a.aggregate > max) {
|