feat: Disable few checks if Fabric native (#2188)

* Disable few checks if Fabric native

* Fix typo in error message
This commit is contained in:
Laurent Nguyen
2025-07-17 08:47:56 +02:00
committed by GitHub
parent 589b61afaf
commit e3ae006100
3 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
import { isFabricNative } from "Platform/Fabric/FabricUtil";
import { AuthType } from "../../AuthType";
import { configContext } from "../../ConfigContext";
import { userContext } from "../../UserContext";
@@ -41,7 +42,7 @@ interface MetricsResponse {
}
export const getCollectionUsageSizeInKB = async (databaseName: string, containerName: string): Promise<number> => {
if (userContext.authType !== AuthType.AAD) {
if (userContext.authType !== AuthType.AAD || isFabricNative()) {
return undefined;
}