Skip to content

Commit

Permalink
Fixed bug, not returning state if media is collection and not morphable
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeFourkas committed Aug 12, 2024
1 parent 3acb607 commit 8bd6764
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/Tables/CuratorColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public function getMedia(): Media | Collection | array | null

return Media::whereIn('id', $mediaIds)->get();
}

return $state;
}

if (is_a($state, Media::class)) {
Expand Down

0 comments on commit 8bd6764

Please sign in to comment.