saearch mapper delete

This commit is contained in:
salam committed 2026-02-22 18:09:26 +01:00
1 parent 811eaad7ef
commit 82c1f6b898
13 files changed
+31 -20

No files matched your search

+2 -1
View File
@@ -308,7 +308,8 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
->size(Size::Small)
->requiresConfirmation()
->action(function (Component $livewire) {
Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->delete();
// XXX
// Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->delete();
$this->search_values = [];
$this->tableSearch = ''; // Clears the main search bar
$livewire->fill(['tableSearch' => '']);