saade / filament-fullcalendar

The Most Popular JavaScript Calendar as a Filament Widget
MIT License
262 stars 79 forks source link

Argument #2 ($record) - null given #198

Closed mgkimsal closed 1 month ago

mgkimsal commented 1 month ago

Filament\Actions\ViewAction::Filament\Actions{closure}(): Argument #2 ($record) must be of type Illuminate\Database\Eloquent\Model, null given, called in /app/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35

I'm getting this when I click an event and it's trying to open an edit modal.

This is just using current filament and plugin versions, just walking through the example code - no major integration with anything else.

Has something recently changed that might trigger this?

saade commented 1 month ago

Hey! Can you share some related code? Just tested here and it seems to work properly.

https://github.com/saade/filament-fullcalendar/assets/14329460/0703ba90-34dc-4c71-9e37-843628e2563d

mgkimsal commented 1 month ago

@saade - apologies! I got pulled away to other aspects of the project. I will be looking back at this later this week!

mgkimsal commented 1 month ago

Going to close this - I rebuilt some of the code and it's working.