Merge pull request #7963 from thornbill/fix-branding-loader

Fix branding page crash in loader
This commit is contained in:
Bill Thornton
2026-05-27 12:08:49 -04:00
committed by GitHub
+5 -2
View File
@@ -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 = () => {