From f565bf7652698067d5f064da4f43e992fa24bd74 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 17 Apr 2026 06:28:31 -0700 Subject: [PATCH] guard null inlineScript in app cli extractor (#8864) Co-authored-by: Claude Opus 4.7 (1M context) --- cli/src/commands/sync/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/sync/sync.ts b/cli/src/commands/sync/sync.ts index 84e6305ea9..668e21b82b 100644 --- a/cli/src/commands/sync/sync.ts +++ b/cli/src/commands/sync/sync.ts @@ -526,7 +526,7 @@ export function extractInlineScriptsForApps( } if (typeof rec == "object") { return Object.entries(rec).flatMap(([k, v]) => { - if (k == "inlineScript" && typeof v == "object") { + if (k == "inlineScript" && v != null && typeof v == "object") { rec["type"] = undefined; const o: Record = v as any; const name = toId(key ?? "", rec);