Skip to content

Commit

Permalink
Update HomeController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Nov 16, 2024
1 parent bdec77d commit c329838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/World/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ protected function points()
return $groups
->merge($external)
->map(fn(Group|ExternalGroup $row) => [
'lat' => $row->latitude,
'lng' => $row->longitude,
'lat' => (float) $row->latitude,
'lng' => (float) $row->longitude,
'name' => $row->label(),
])
->reject(fn($data) => empty($data['lat']) || empty($data['lat']))
Expand Down

0 comments on commit c329838

Please sign in to comment.