mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Remove workaround
This commit is contained in:
@@ -70,12 +70,7 @@ abstract class ViewComponent extends Component implements Htmlable
|
||||
*/
|
||||
public function viewData(array | Closure $data): static
|
||||
{
|
||||
if (
|
||||
(is_array($data) && count($data))
|
||||
|| $data instanceof Closure
|
||||
) {
|
||||
$this->viewData[] = $data;
|
||||
}
|
||||
$this->viewData[] = $data;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user