From 750e47c62d3bcabf9165295ce93f8d229eaeb09d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 5 Jul 2023 14:15:42 +0300 Subject: [PATCH] Fixed factory class exits --- app/View/Components/Table/Tr.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/View/Components/Table/Tr.php b/app/View/Components/Table/Tr.php index 08dad6cd8..b07ae3c38 100644 --- a/app/View/Components/Table/Tr.php +++ b/app/View/Components/Table/Tr.php @@ -46,7 +46,9 @@ class Tr extends Component $factory = $self->getValue(); - if (array_key_exists('App\View\Components\Table\Tbody', $values) && $factory->getLoopStack()) { + if (array_key_exists('App\View\Components\Table\Tbody', $values) + && ($factory instanceof \Illuminate\View\Factory && $factory->getLoopStack()) + ) { return 'relative flex items-center px-1 group border-b hover:bg-gray-100'; }