fix: Use null-safe operator for brand logo and favicon paths.

This commit is contained in:
Yoga Pangestu 2026-01-29 13:36:45 +07:00
parent 3285fa196c
commit bb7208d34f

View File

@ -107,7 +107,7 @@ public function panel(Panel $panel): Panel
]) ])
->databaseNotifications() ->databaseNotifications()
->databaseNotificationsPolling('30s') ->databaseNotificationsPolling('30s')
->brandLogo(fn () => Storage::url($generalSettings->site_logo)) ->brandLogo(fn () => Storage::url($generalSettings?->site_logo))
->favicon(fn () => Storage::url($generalSettings->site_icon)); ->favicon(fn () => Storage::url($generalSettings?->site_icon));
} }
} }