Skip to content

Commit

Permalink
add rescue() on apply format summarize (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
dansysanalyst authored May 20, 2024
1 parent 3740269 commit 204e6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProcessDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 204e6e7

Please sign in to comment.