Hackathonners / swap

Swap - Simplifying shift exchanges
MIT License
12 stars 6 forks source link

bug: fix enrollments export #25

Closed alves-luis closed 4 years ago

alves-luis commented 4 years ago

When exporting the enrollments, a 500 error would be thrown. This fixes the ability to export current enrollments.

fntneves commented 4 years ago

In what scenario the 500 was thrown?

Provide more details, please.

alves-luis commented 4 years ago

With 0 enrollments, pressing the Export enrollments button throws this error:

Symfony\Component\Debug\Exception\FatalThrowableError
Typed property App\Exports\EnrollmentsExport::$enrollments must be an instance of Illuminate\Support\Collection, null used