diff --git a/src/DataSource/Processors/DataSourceBase.php b/src/DataSource/Processors/DataSourceBase.php index 77469a1e..5070daeb 100644 --- a/src/DataSource/Processors/DataSourceBase.php +++ b/src/DataSource/Processors/DataSourceBase.php @@ -243,6 +243,8 @@ protected function applySummaries(MorphToMany|EloquentBuilder|BaseCollection|Que $this->component->columns = collect($this->component->columns) ->map(function (array|\stdClass|Column $column) use ($results, $applySummaryFormat) { + $column = (array) $column; + $field = strval(data_get($column, 'dataField')) ?: strval(data_get($column, 'field')); $summaries = ['sum', 'count', 'avg', 'min', 'max'];