mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 01:58:00 +08:00
Update Notification.php
This commit is contained in:
@@ -125,7 +125,7 @@ class Notification extends ViewComponent implements Arrayable, HasEmbeddedView
|
||||
|
||||
$view = $data['view'] ?? null;
|
||||
|
||||
if (filled($view) && ($static->getView() !== $view) && $static->isViewSafe($view)) {
|
||||
if (filled($view) && ((! $static->hasView()) || ($static->getView() !== $view)) && $static->isViewSafe($view)) {
|
||||
$static->view($data['view']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user