From 204e6e79213852cc7378fad26902885cb555374a Mon Sep 17 00:00:00 2001 From: Dan <79267265+dansysanalyst@users.noreply.github.com> Date: Mon, 20 May 2024 21:00:56 +0200 Subject: [PATCH] add rescue() on apply format summarize (#1560) --- src/ProcessDataSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProcessDataSource.php b/src/ProcessDataSource.php index 9871dffd0..0d0df17a3 100644 --- a/src/ProcessDataSource.php +++ b/src/ProcessDataSource.php @@ -393,7 +393,7 @@ private function applySummaries(MorphToMany|EloquentBuilder|BaseCollection|Query foreach ($summaries as $summary) { if (data_get($column, $summary . '.header') || data_get($column, $summary . '.footer')) { $value = $results->{$summary}($field); - $applySummaryFormat($summary, $column, $field, $value); + rescue(fn () => $applySummaryFormat($summary, $column, $field, $value), report: false); } }