We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85d5337 + 5469efc commit f573e46Copy full SHA for f573e46
src/contexts/AuthContext.tsx
@@ -80,7 +80,14 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
80
async function handleGetSystemConfig() {
81
if (!authData.authenticated) return;
82
83
- const response = await getSystemConfigApi();
+ let response = await getSystemConfigApi() as {
84
+ config: SystemConfig;
85
+ minio_provider: MinioStorageProvider;
86
+ } | null;
87
+ if (response && authData.token === undefined && response.config.oidc_groups.length === 1 && response.config.oidc_groups[0] === "") {
88
+ response.config.oidc_groups[0] = " ";
89
+ }
90
+
91
setSystemConfig(response);
92
}
93
0 commit comments