Skip to content

Commit

Permalink
Fix onChange method for manual risk entry
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Aug 21, 2023
1 parent 8ce3163 commit 789f5b8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ export const TagCategoryForm: React.FC<TagCategoryFormProps> = ({
onMinus={() => {
onChange((value || 0) - 1);
}}
onChange={() => onChange}
onChange={(event) => {
const target = event?.target as HTMLInputElement;
if (target) {
onChange(target.valueAsNumber);
}
}}
onPlus={() => {
onChange((value || 0) + 1);
}}
Expand Down

0 comments on commit 789f5b8

Please sign in to comment.