Don't pass through default tenant ID.

This commit is contained in:
mike12345567 2023-10-24 17:30:57 +01:00
parent ba5b1d7cfa
commit 701d30abb4
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import env from "../../environment"
import * as objectStore from "../objectStore" import * as objectStore from "../objectStore"
import * as cloudfront from "../cloudfront" import * as cloudfront from "../cloudfront"
import qs from "querystring" import qs from "querystring"
import { getTenantId, DEFAULT_TENANT_ID } from "../../context" import { DEFAULT_TENANT_ID, getTenantId } from "../../context"
export function clientLibraryPath(appId: string) { export function clientLibraryPath(appId: string) {
return `${objectStore.sanitizeKey(appId)}/budibase-client.js` return `${objectStore.sanitizeKey(appId)}/budibase-client.js`
@ -38,7 +38,7 @@ export function clientLibraryUrl(appId: string, version: string) {
version, version,
} }
} }
if (tenantId) { if (tenantId && tenantId !== DEFAULT_TENANT_ID) {
qsParams.tenantId = tenantId qsParams.tenantId = tenantId
} }
return `/api/assets/client?${qs.encode(qsParams)}` return `/api/assets/client?${qs.encode(qsParams)}`