fixed export multisheets filter issue

This commit is contained in:
Cihan Şentürk 2024-04-24 18:03:57 +03:00 committed by GitHub
parent fbe33ff83c
commit 52c72ad029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class Export
//Todo: This improvement solves the filter issue on multiple excel sheets. This solution is a temporary solution.
if (empty($class->ids) && method_exists($class, 'sheets') && is_array($sheets = $class->sheets())) {
$class->ids = (new $sheets[array_key_first($sheets)])->collection()->pluck('id')->toArray();
$class->ids = ! empty($ids = (new $sheets[array_key_first($sheets)])->collection()->pluck('id')->toArray()) ? $ids : [0];
}
if (should_queue()) {