close #2154 Fixed: Notification widget items check issue #n16d9b
This commit is contained in:
@ -63,10 +63,10 @@ class Reminder extends Component
|
||||
$notifications = $query->get();
|
||||
}
|
||||
|
||||
if ($notifications->items()) {
|
||||
if ($notifications) {
|
||||
$items = [];
|
||||
|
||||
foreach ($notifications->items() as $key => $notification) {
|
||||
foreach ($notifications as $key => $notification) {
|
||||
$data = (object) $notification->getAttribute('data');
|
||||
|
||||
$item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first();
|
||||
|
Reference in New Issue
Block a user