Merge pull request #16017 from Budibase/fix-serving-apps-without-themes

Fix serving apps without themes due to defaulting a string to an object
This commit is contained in:
Andrew Kingston 2025-04-25 16:13:33 +01:00 committed by GitHub
commit 881c7d22f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ export const serveApp = async function (ctx: UserCtx<void, ServeAppResponse>) {
const sideNav = appInfo.navigation.navigation === "Left"
const hideFooter =
ctx?.user?.license?.features?.includes(Feature.BRANDING) || false
const themeVariables = getThemeVariables(appInfo?.theme || {})
const themeVariables = getThemeVariables(appInfo?.theme)
const hasPWA = Object.keys(appInfo.pwa || {}).length > 0
const manifestUrl = hasPWA ? `/api/apps/${appId}/manifest.json` : ""
const addAppScripts =