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);