Skip to content

Commit

Permalink
fix: comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Apr 18, 2024
1 parent df49579 commit d14006e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/DropdownField.res
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ let make = (
})

switch setDisplayValue {
| Some(fun) => fun(_ => findDisplayValue.displayValue->Option.getOr(value))
| Some(setDisplayValueFun) =>
setDisplayValueFun(_ => findDisplayValue.displayValue->Option.getOr(value))
| None => ()
}
}
Expand Down

0 comments on commit d14006e

Please sign in to comment.