diff --git a/src/Common/dataAccess/readDatabases.ts b/src/Common/dataAccess/readDatabases.ts index e6a845abc..5f65f526b 100644 --- a/src/Common/dataAccess/readDatabases.ts +++ b/src/Common/dataAccess/readDatabases.ts @@ -12,14 +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) { + if ( + window.authType === AuthType.AAD && + !userContext.useSDKOperations && + userContext.defaultExperience !== DefaultAccountExperienceType.Table + ) { databases = await readDatabasesWithARM(); } else { const sdkResponse = await client() diff --git a/src/Common/dataAccess/updateOffer.ts b/src/Common/dataAccess/updateOffer.ts index 3b276bb50..7d7758381 100644 --- a/src/Common/dataAccess/updateOffer.ts +++ b/src/Common/dataAccess/updateOffer.ts @@ -406,10 +406,14 @@ const updateOfferWithSDK = async (params: UpdateOfferParams): Promise => const options: RequestOptions = {}; if (params.migrateToAutoPilot) { - options.initialHeaders[HttpHeaders.migrateOfferToAutopilot] = "true"; + options.initialHeaders = { + [HttpHeaders.migrateOfferToAutopilot]: "true" + }; delete newOffer.content.offerAutopilotSettings; } else if (params.migrateToManual) { - options.initialHeaders[HttpHeaders.migrateOfferToManualThroughput] = "true"; + options.initialHeaders = { + [HttpHeaders.migrateOfferToManualThroughput]: "true" + }; newOffer.content.offerAutopilotSettings = { maxThroughput: 0 }; }