From 7250003fab289ea2f899802999d39212f4d1a961 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Mon, 6 Feb 2023 21:40:40 +0100 Subject: [PATCH] merge with geojson easify repo --- app/Http/Livewire/Meetup/PrepareForBtcMapItem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php b/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php index 9a98f97c..0288a5db 100644 --- a/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php +++ b/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php @@ -73,7 +73,7 @@ class PrepareForBtcMapItem extends Component { $this->model = $this->meetup->city; $this->population = $this->model->population; - $this->population_date = $this->model->population_date; + $this->population_date = $this->model->population_date ?? '2021-12-31'; $this->getSearchResults(); if ($this->osm_id) { $this->selectedItemOSMPolygons = collect($this->osmSearchResults) @@ -283,9 +283,9 @@ class PrepareForBtcMapItem extends Component public function updatedPopulation($value) { - $this->model->population = (int) str($value) + $this->model->population = str($value) ->replace(['.', ','], '') - ->toString(); + ->toInteger(); $this->model->save(); $this->notification()