We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0144852 commit b112b5fCopy full SHA for b112b5f
src/components/picker/PickerItemsList.tsx
@@ -36,7 +36,7 @@ const PickerItemsList = (props: PickerItemsListProps) => {
36
} = props;
37
const context = useContext(PickerContext);
38
39
- const [wheelPickerValue, setWheelPickerValue] = useState<PickerSingleValue>(context.value ?? items?.[0].value);
+ const [wheelPickerValue, setWheelPickerValue] = useState<PickerSingleValue>(context.value ?? items?.[0]?.value);
40
// TODO: Might not need this memoized style, instead we can move it to a stylesheet
41
const wrapperContainerStyle = useMemo(() => {
42
// const shouldFlex = Constants.isWeb ? 1 : useDialog ? 1 : 1;
0 commit comments