Fix branding page crash in loader

This commit is contained in:
Bill Thornton
2026-05-27 11:29:35 -04:00
parent d7ea808aeb
commit d87dc17999
+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 = () => {