From abf1e3079e2a07e31af1cfe654402b577b19d193 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Sun, 27 Apr 2025 16:28:27 +0100 Subject: [PATCH] Update Notification.php --- packages/notifications/src/Notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/notifications/src/Notification.php b/packages/notifications/src/Notification.php index 54f6d25b40..69eb9c6575 100644 --- a/packages/notifications/src/Notification.php +++ b/packages/notifications/src/Notification.php @@ -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']); }