Skip to content

Commit

Permalink
fix(ui): parameter descriptions shouldn't disappear on input (#13244)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <[email protected]>
(cherry picked from commit 06da23e)
  • Loading branch information
Anton Gilgur committed Jul 6, 2024
1 parent 718f8af commit deca808
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ interface ParametersInputProps {
export function ParametersInput(props: ParametersInputProps) {
function onParameterChange(parameter: Parameter, value: string) {
const newParameters: Parameter[] = props.parameters.map(p => ({
name: p.name,
value: p.name === parameter.name ? value : Utils.getValueFromParameter(p),
enum: p.enum
...p,
value: p.name === parameter.name ? value : Utils.getValueFromParameter(p)
}));
props.onChange(newParameters);
}
Expand Down

0 comments on commit deca808

Please sign in to comment.