diff --git a/resources/views/filament/partials/notifications-refresh.blade.php b/resources/views/filament/partials/notifications-refresh.blade.php index 9dbbd92..62e70a9 100644 --- a/resources/views/filament/partials/notifications-refresh.blade.php +++ b/resources/views/filament/partials/notifications-refresh.blade.php @@ -15,6 +15,11 @@ } succeed(() => { + if (window.Livewire?.dispatchTo) { + window.Livewire.dispatchTo('notifications', 'notificationsSent'); + return; + } + window.Livewire.dispatch('notificationsSent'); }); });