mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
Merge pull request #7963 from thornbill/fix-branding-loader
Fix branding page crash in loader
This commit is contained in:
@@ -60,9 +60,12 @@ export const action = async ({ request }: ActionFunctionArgs) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const loader = () => {
|
||||
export const loader = async () => {
|
||||
const api = ServerConnections.getCurrentApi();
|
||||
if (!api) return {};
|
||||
|
||||
return queryClient.ensureQueryData(
|
||||
getBrandingOptionsQuery(ServerConnections.getCurrentApi()));
|
||||
getBrandingOptionsQuery(api));
|
||||
};
|
||||
|
||||
export const Component = () => {
|
||||
|
||||
Reference in New Issue
Block a user