guard null inlineScript in app cli extractor (#8864)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-04-17 06:28:31 -07:00
committed by GitHub
parent b1a4c780dc
commit f565bf7652
+1 -1
View File
@@ -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<string, any> = v as any;
const name = toId(key ?? "", rec);