From e6e718411d2c397df065399a1233a4cb7a05591d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 25 Apr 2025 15:44:25 +0100 Subject: [PATCH] Fix serving apps without themes due to defaulting a string to an object --- packages/server/src/api/controllers/static/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/static/index.ts b/packages/server/src/api/controllers/static/index.ts index 522e49eb4b..7147697bd4 100644 --- a/packages/server/src/api/controllers/static/index.ts +++ b/packages/server/src/api/controllers/static/index.ts @@ -281,7 +281,7 @@ export const serveApp = async function (ctx: UserCtx) { 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 =