Skip to content

Commit

Permalink
[TM-1425] add data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarLima1 committed Dec 9, 2024
1 parent 01b0516 commit 1005c2e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function __invoke(EntityModel $entity, string $slug)
'year_of_analysis' => $indicator->year_of_analysis,
'created_at' => $indicator->created_at,
'base_line' => $indicator->created_at,
'data' => [],
];
if (str_contains($slug, 'treeCoverLoss')) {
$valueYears = json_decode($indicator->value, true);
Expand Down Expand Up @@ -115,6 +116,6 @@ public function processValuesHectares($values)
}
}

return $separateKeys;
return ['data' => $separateKeys];
}
}

0 comments on commit 1005c2e

Please sign in to comment.