This commit is contained in:
salam committed 2026-02-13 13:43:09 +01:00
1 parent d5ef146f88
commit 6fb18dc223
1 file changed
+1 -1
+1 -1
View File
@@ -101,7 +101,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
->preload()
->live()
->options(function (Get $get) {
return Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country', 'country_id')->toArray();
return Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('country_id')->orderBy('country')->pluck('country', 'country_id')->toArray();
})
->afterStateUpdated(function (callable $set) {
$set('group_id', null);