From bf883266ca84d19cf39ed94cada34873b86ee8da Mon Sep 17 00:00:00 2001 From: chrismclarke Date: Fri, 20 Sep 2024 16:11:19 -0700 Subject: [PATCH] fix: scripts app_config --- packages/scripts/src/commands/app-data/postProcess/assets.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/scripts/src/commands/app-data/postProcess/assets.ts b/packages/scripts/src/commands/app-data/postProcess/assets.ts index ba6528d90a..9b8dff42f8 100644 --- a/packages/scripts/src/commands/app-data/postProcess/assets.ts +++ b/packages/scripts/src/commands/app-data/postProcess/assets.ts @@ -170,7 +170,8 @@ export class AssetsPostProcessor { const filtered: typeof sourceAssets = {}; const { assets_filter_function } = this.activeDeployment.app_data; const { filter_language_codes } = this.activeDeployment.translations; - const filter_theme_names = this.activeDeployment.app_config.APP_THEMES.available; + // themes are defined in runtime app config which may not be available during scripts + const filter_theme_names = this.activeDeployment.app_config.APP_THEMES?.available || []; // remove contents file from gdrive download delete sourceAssets["_contents.json"];