Update Notification.php

This commit is contained in:
Dan Harrin
2025-04-27 16:28:27 +01:00
parent d858b68e86
commit abf1e3079e
+1 -1
View File
@@ -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']);
}