Skip to content

Commit bee5783

Browse files
committed
fix: remove useEffect
1 parent 9b709ae commit bee5783

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,9 @@ export const MultiSelectCombobox = forwardRef<
430430
return undefined;
431431
};
432432

433-
useEffect(() => {
434-
if (inputRef.current && inputProps?.id) {
435-
inputRef.current.id = inputProps?.id;
436-
}
437-
}, [inputProps?.id]);
433+
if (inputRef.current && inputProps?.id) {
434+
inputRef.current.id = inputProps?.id;
435+
}
438436

439437
const fixedOptions = selected.filter((s) => s.fixed);
440438

0 commit comments

Comments
 (0)