mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user