diff --git a/src/Common/dataAccess/readDatabases.ts b/src/Common/dataAccess/readDatabases.ts index b106a4e06..e6a845abc 100644 --- a/src/Common/dataAccess/readDatabases.ts +++ b/src/Common/dataAccess/readDatabases.ts @@ -12,16 +12,14 @@ import { sendNotificationForError } from "./sendNotificationForError"; import { userContext } from "../../UserContext"; export async function readDatabases(): Promise { + if (userContext.defaultExperience === DefaultAccountExperienceType.Table) { + return [{ id: "TablesDB" } as DataModels.Database]; + } + let databases: DataModels.Database[]; const clearMessage = logConsoleProgress(`Querying databases`); try { - if ( - window.authType === AuthType.AAD && - !userContext.useSDKOperations && - userContext.defaultExperience !== DefaultAccountExperienceType.MongoDB && - userContext.defaultExperience !== DefaultAccountExperienceType.Table && - userContext.defaultExperience !== DefaultAccountExperienceType.Cassandra - ) { + if (window.authType === AuthType.AAD && !userContext.useSDKOperations) { databases = await readDatabasesWithARM(); } else { const sdkResponse = await client()