mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Update PartialsComponentHook.php
This commit is contained in:
@@ -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, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user