fix: handle empty input_schema.properties in CustomNode

Add defensive check to prevent crash when inputSchema.properties
is undefined (e.g., for sub-agent blocks with empty schemas).
This commit is contained in:
Zamil Majdy
2026-01-30 13:25:51 -06:00
parent 4053deecf8
commit b2777aa5fc

View File

@@ -857,7 +857,7 @@ export const CustomNode = React.memo(
})();
const hasAdvancedFields =
data.inputSchema &&
data.inputSchema?.properties &&
Object.entries(data.inputSchema.properties).some(([key, value]) => {
return (
value.advanced === true && !data.inputSchema.required?.includes(key)