fix: typo in EpisodeController remap function to get episode

- fix defaultValue being empty string when cast as array
- fix initial styles for select to reduce
content layout shift
This commit is contained in:
Yassine Doghri 2024-12-29 13:21:50 +00:00
commit f288a750f5
9 changed files with 25 additions and 28 deletions

View file

@ -48,7 +48,7 @@ class EpisodeController extends BaseController
}
if (
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode)
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
) {
throw PageNotFoundException::forPageNotFound();
}