mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Fix throw
This commit is contained in:
@@ -29,7 +29,7 @@ class PanelRegistry
|
||||
return $this->defaultPanel ??= Arr::first(
|
||||
$this->panels,
|
||||
fn (Panel $panel): bool => $panel->isDefault(),
|
||||
fn () => new NoDefaultPanelSetException('No default Filament panel is set. You may do this with the `default()` method inside a Filament provider\'s `panel()` configuration.'),
|
||||
fn () => throw new NoDefaultPanelSetException('No default Filament panel is set. You may do this with the `default()` method inside a Filament provider\'s `panel()` configuration.'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user