From 8bd6764030423e19cf246e43b663a9931de50207 Mon Sep 17 00:00:00 2001 From: GeorgeFourkas Date: Tue, 13 Aug 2024 01:58:12 +0300 Subject: [PATCH] Fixed bug, not returning state if media is collection and not morphable --- src/Components/Tables/CuratorColumn.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Components/Tables/CuratorColumn.php b/src/Components/Tables/CuratorColumn.php index f712e42..6c98add 100644 --- a/src/Components/Tables/CuratorColumn.php +++ b/src/Components/Tables/CuratorColumn.php @@ -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)) {