initializes string parameters without defaults as empty strings instead of null (#4382)

This commit is contained in:
Celal Zamanoglu
2026-01-02 23:42:17 +03:00
committed by GitHub
parent ce029caeb0
commit d5c5d50578

View File

@@ -33,7 +33,8 @@ export const getInitialValues = (
acc[curr.key] = curr.default_value;
return acc;
}
acc[curr.key] = null;
// For string parameters, keep empty string instead of null to match run form behavior
acc[curr.key] = curr.workflow_parameter_type === "string" ? "" : null;
return acc;
},
{} as Record<string, unknown>,