Skip to content

Commit

Permalink
Fix bug usage of data explorer when not authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Dec 6, 2024
1 parent d539808 commit a816acd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/core/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ export async function bootstrapCore(
}),
sqlOlap: createDuckDbSqlOlap({
getS3Config: async () => {
if (!oidc.isUserLoggedIn) {
return undefined;
}

const result = await dispatch(
usecases.s3ConfigManagement.protectedThunks.getS3ConfigAndClientForExplorer()
);
Expand Down

0 comments on commit a816acd

Please sign in to comment.