diff options
| author | Sam Light <samlight1994@gmail.com> | 2025-04-02 21:57:23 +0100 | 
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2025-04-02 21:57:23 +0100 | 
| commit | 7c8ba525d799f56c8a9dda663b405a3341761619 (patch) | |
| tree | 27ecda3d990fe1b23e76c4b39cfef69f0aea5183 | |
| parent | 6ef81e6cc580a2ba84a144c69c5f3af010012f04 (diff) | |
Fix bug with no toolbar and searching
| -rw-r--r-- | src/TableComponent.php | 2 | 
1 files changed, 1 insertions, 1 deletions
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();      }  | 
