From c5f76ac2a91c908107ee9350f0322c8a1e73fed2 Mon Sep 17 00:00:00 2001 From: victor-meng <56978073+victor-meng@users.noreply.github.com> Date: Wed, 12 May 2021 07:16:13 -0700 Subject: [PATCH] Fix isFixedCollectionWithSharedThroughputSupported flag (#774) --- src/Explorer/Explorer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 0fa1f5634..80e136cc9 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -34,6 +34,7 @@ import { updateUserContext, userContext } from "../UserContext"; import { getCollectionName, getDatabaseName, getUploadName } from "../Utils/APITypeUtils"; import { decryptJWTToken, getAuthorizationHeader } from "../Utils/AuthorizationUtils"; import { stringToBlob } from "../Utils/BlobUtils"; +import { isCapabilityEnabled } from "../Utils/CapabilityUtils"; import { fromContentUri, toRawContentUri } from "../Utils/GitHubUtils"; import * as NotificationConsoleUtils from "../Utils/NotificationConsoleUtils"; import { logConsoleError, logConsoleInfo, logConsoleProgress } from "../Utils/NotificationConsoleUtils"; @@ -368,7 +369,7 @@ export default class Explorer { return false; } - return userContext.apiType === "Mongo"; + return isCapabilityEnabled("EnableMongo"); }); this.isServerlessEnabled = ko.computed(