Skip to content

Commit d9e4b7a

Browse files
Ruben van LeeuwenDutchBen
authored andcommitted
2134: Improve reactSelect linting
1 parent 2c44115 commit d9e4b7a

File tree

1 file changed

+1
-1
lines changed
  • packages/orchestrator-ui-components/src/components/WfoPydanticForm/fields/WfoReactSelect

1 file changed

+1
-1
lines changed

packages/orchestrator-ui-components/src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const WfoReactSelect = <ValueType,>({
3838
(option: Option<ValueType>) => option.value === value,
3939
);
4040
setSelectedValue(selectedValue || null);
41-
}, [value]);
41+
}, [options, value]);
4242

4343
const initialValue = options.find(
4444
(option: Option<ValueType>) => option.value === value,

0 commit comments

Comments
 (0)