We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d08eb commit 16dcae4Copy full SHA for 16dcae4
src/components/MoveIteration.tsx
@@ -51,9 +51,10 @@ function MoveIteration({
51
options={iterationsPicker}
52
value={newIteration}
53
onChange={(_event, newValue: Picker) => {
54
- setNewIteration(
55
- iterationsPicker.find((it: Picker) => it.id === newValue.id)
+ const foundValue = iterationsPicker.find(
+ (it: Picker) => it.id === newValue.id
56
);
57
+ if (foundValue) setNewIteration(foundValue);
58
}}
59
renderInput={(params): JSX.Element => (
60
<TextField {...params} label="New Iteration" />
0 commit comments