From 7c8ba525d799f56c8a9dda663b405a3341761619 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 2 Apr 2025 21:57:23 +0100 Subject: Fix bug with no toolbar and searching --- src/TableComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TableComponent.php') diff --git a/src/TableComponent.php b/src/TableComponent.php index c08f333..7186b1f 100644 --- a/src/TableComponent.php +++ b/src/TableComponent.php @@ -68,7 +68,7 @@ abstract class TableComponent extends Component protected function isSearching(): bool { - $search = $this->getToolbar()->getSearch(); + $search = $this->getToolbar()?->getSearch(); return $search !== null && Str::length($this->search) >= $search->getMinLength(); } -- cgit v1.2.3