mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update HasState.php
This commit is contained in:
@@ -169,7 +169,13 @@ trait HasState
|
||||
|
||||
if (filled($components = $this->getComponentsToPartiallyRenderAfterStateUpdated())) {
|
||||
foreach ($components as $key) {
|
||||
$this->getLivewire()->getSchemaComponent($this->resolveRelativeKey($key), withHidden: true)?->partiallyRender() ?? throw new InvalidArgumentException("Could not find component [{$key}] to partially render.");
|
||||
$component = $this->getLivewire()->getSchemaComponent($this->resolveRelativeKey($key), withHidden: true);
|
||||
|
||||
if (! $component) {
|
||||
throw new InvalidArgumentException("Could not find component [{$key}] to partially render.");
|
||||
}
|
||||
|
||||
$component->partiallyRender();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user