From 915940218e42ae95f8e78a16cee0818c20d2b942 Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 12 May 2024 02:27:30 +0200 Subject: [PATCH] add rescue() on apply format summarize --- src/ProcessDataSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProcessDataSource.php b/src/ProcessDataSource.php index 9871dffd..0d0df17a 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); } }