From 28ceb18d7385ed9b7c86790f086e3654a8390049 Mon Sep 17 00:00:00 2001 From: victor-meng <56978073+victor-meng@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:32:47 -0700 Subject: [PATCH] Use SDK for reading database offer for Tables API (#226) --- src/Common/dataAccess/readDatabaseOffer.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Common/dataAccess/readDatabaseOffer.ts b/src/Common/dataAccess/readDatabaseOffer.ts index e3b27d2b4..f002f09bf 100644 --- a/src/Common/dataAccess/readDatabaseOffer.ts +++ b/src/Common/dataAccess/readDatabaseOffer.ts @@ -16,7 +16,11 @@ export const readDatabaseOffer = async ( ): Promise => { let offerId = params.offerId; if (!offerId) { - if (window.authType === AuthType.AAD && !userContext.useSDKOperations) { + if ( + window.authType === AuthType.AAD && + !userContext.useSDKOperations && + userContext.defaultExperience !== DefaultAccountExperienceType.Table + ) { try { offerId = await getDatabaseOfferIdWithARM(params.databaseId); } catch (error) {