Commit 0090256f authored by Robert Knight's avatar Robert Knight

Explicitly specify `onChange` argument type

The v7.12.0 has a more complex type for `SelectNext` and inferring the argument
type for `onChange` now fails.
parent cfe513fa
...@@ -165,7 +165,9 @@ function ImportAnnotations({ ...@@ -165,7 +165,9 @@ function ImportAnnotations({
</label> </label>
<SelectNext <SelectNext
value={selectedUser} value={selectedUser}
onChange={newValue => setSelectedUserId(newValue?.userid ?? null)} onChange={(newValue: typeof selectedUser) =>
setSelectedUserId(newValue?.userid ?? null)
}
buttonId={userSelectId} buttonId={userSelectId}
buttonContent={ buttonContent={
selectedUser ? ( selectedUser ? (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment