Fixed factory class exits

This commit is contained in:
Cüneyt Şentürk 2023-07-05 14:15:42 +03:00
parent c97d64793a
commit 750e47c62d

View File

@ -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';
}