initializes string parameters without defaults as empty strings instead of null (#4382)
This commit is contained in:
@@ -33,7 +33,8 @@ export const getInitialValues = (
|
|||||||
acc[curr.key] = curr.default_value;
|
acc[curr.key] = curr.default_value;
|
||||||
return acc;
|
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;
|
return acc;
|
||||||
},
|
},
|
||||||
{} as Record<string, unknown>,
|
{} as Record<string, unknown>,
|
||||||
|
|||||||
Reference in New Issue
Block a user