Skip to content

Commit

Permalink
simplify Input change
Browse files Browse the repository at this point in the history
  • Loading branch information
shincap8 committed Feb 25, 2025
1 parent 927b4b5 commit 0b4782b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ const SimpleSliderNoExplanation: FC<SimpleSliderNoExplanationProps> = ({

const handleChange = (value: string) => {
setShowTooltip(true);
const updatedResponses = { instructions: value };

setelectedValue(value);
onInputChange(
{
[field_name_for_the_model]: updatedResponses,
[field_name_for_the_model]: value,
},
metadata
);
Expand Down

0 comments on commit 0b4782b

Please sign in to comment.