Fix throw

This commit is contained in:
Ralph J. Smit
2025-06-28 13:46:10 +02:00
parent 9e4a68004a
commit 6d8fe62e90
+1 -1
View File
@@ -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.'),
);
}