Don't pass through default tenant ID.
This commit is contained in:
parent
ba5b1d7cfa
commit
701d30abb4
|
@ -2,7 +2,7 @@ import env from "../../environment"
|
|||
import * as objectStore from "../objectStore"
|
||||
import * as cloudfront from "../cloudfront"
|
||||
import qs from "querystring"
|
||||
import { getTenantId, DEFAULT_TENANT_ID } from "../../context"
|
||||
import { DEFAULT_TENANT_ID, getTenantId } from "../../context"
|
||||
|
||||
export function clientLibraryPath(appId: string) {
|
||||
return `${objectStore.sanitizeKey(appId)}/budibase-client.js`
|
||||
|
@ -38,7 +38,7 @@ export function clientLibraryUrl(appId: string, version: string) {
|
|||
version,
|
||||
}
|
||||
}
|
||||
if (tenantId) {
|
||||
if (tenantId && tenantId !== DEFAULT_TENANT_ID) {
|
||||
qsParams.tenantId = tenantId
|
||||
}
|
||||
return `/api/assets/client?${qs.encode(qsParams)}`
|
||||
|
|
Loading…
Reference in New Issue