From dca54ae131611b88be394ffc5d3d0660da85303b Mon Sep 17 00:00:00 2001 From: cobogt Date: Tue, 26 Oct 2021 13:59:28 -0500 Subject: [PATCH] Update DataTableComponent.php When updates composer all the tables shows this error, just needs to add this property to the Main DataTableComponent to solve it TypeError count(): Argument #1 ($value) must be of type Countable|array, null given --- src/DataTableComponent.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/DataTableComponent.php b/src/DataTableComponent.php index b3d346ea6..3c18380c1 100644 --- a/src/DataTableComponent.php +++ b/src/DataTableComponent.php @@ -33,7 +33,12 @@ abstract class DataTableComponent extends Component use WithReordering; use WithSearch; use WithSorting; - + + /** + * This property avoids the error + * TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given + */ + public array $bulkActions = []; /** * Dump the filters array for debugging at the top of the datatable *