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]>
  • Loading branch information
Anton Gilgur authored Jun 26, 2024
1 parent 71a5476 commit 06da23e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/src/app/shared/components/parameters-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,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 06da23e

Please sign in to comment.