From 460e4c4fbcb45e1750cb667eb3f0805fb2051367 Mon Sep 17 00:00:00 2001 From: Rafael Date: Sat, 31 Jul 2021 16:14:46 -0300 Subject: [PATCH] checks if allOptions is null before moving --- src/components/OptionsSelector.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/OptionsSelector.js b/src/components/OptionsSelector.js index d03519c43de..beb39197ac8 100755 --- a/src/components/OptionsSelector.js +++ b/src/components/OptionsSelector.js @@ -124,6 +124,10 @@ class OptionsSelector extends Component { }))] ), []); + if (allOptions.length === 0) { + return; + } + if (this.props.disableArrowKeysActions && e.nativeEvent.key.startsWith('Arrow')) { return; }