chore: Clean redundant dependency from useMemo dep array (#19732)

This commit is contained in:
Kamil Gabryjelski 2022-04-15 14:56:34 +02:00 committed by GitHub
parent ce77d55396
commit b7759e6fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,10 +126,7 @@ export function DndColumnSelect(props: DndColumnSelectProps) {
[onChange, optionSelector],
);
const popoverOptions = useMemo(
() => Object.values(options),
[optionSelector.values, options],
);
const popoverOptions = useMemo(() => Object.values(options), [options]);
const valuesRenderer = useCallback(
() =>