Use SDK for reading database offer for Tables API (#226)

This commit is contained in:
victor-meng 2020-09-23 13:32:47 -07:00 committed by GitHub
parent 666a378b3b
commit 28ceb18d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@ export const readDatabaseOffer = async (
): Promise<DataModels.OfferWithHeaders> => {
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) {