chore: Changes the RefreshIntervalModal component to use the new select component (#16048)

This commit is contained in:
Michael S. Molina
2021-08-06 07:58:53 -03:00
committed by GitHub
parent 423ff50768
commit e59f318ef9
3 changed files with 10 additions and 11 deletions

View File

@@ -217,7 +217,7 @@ const Select = ({
const handleTopOptions = useCallback(
(selectedValue: AntdSelectValue | undefined) => {
// bringing selected options to the top of the list
if (selectedValue) {
if (selectedValue !== undefined && selectedValue !== null) {
const topOptions: OptionsType = [];
const otherOptions: OptionsType = [];