Skip to content

Commit

Permalink
add rescue() on apply format summarize
Browse files Browse the repository at this point in the history
  • Loading branch information
dansysanalyst committed May 12, 2024
1 parent 9b896af commit 9159402
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 9159402

Please sign in to comment.