diff --git a/src/Layout/Concerns/WithScroll.php b/src/Layout/Concerns/WithScroll.php index 59b0687..04d2a62 100644 --- a/src/Layout/Concerns/WithScroll.php +++ b/src/Layout/Concerns/WithScroll.php @@ -25,7 +25,7 @@ public function bootWithScroll(): void public function mountWithScroll(): void { - if ($this->items->isEmpty()) { + if ($this->models->isEmpty()) { $this->fillPageItems(); } }