Update PartialsComponentHook.php

This commit is contained in:
Dan Harrin
2025-07-30 07:18:07 -06:00
parent 501eb5b561
commit 8ae4b9ee24
@@ -100,7 +100,9 @@ class PartialsComponentHook extends ComponentHook
$renderAndQueuePartials = function (Closure $getPartialsUsing) use (&$partials): void {
foreach ($getPartialsUsing() as $partialName => $view) {
$view = ($view instanceof View) ? $view : view('filament::anonymous-partial', ['html' => $view]);
if (! ($view instanceof View)) {
$view = view('filament::anonymous-partial', ['html' => $view]);
}
$finish = trigger('render', $this->component, $view, []);