diff --git a/src/components/form/select/select.tsx b/src/components/form/select/select.tsx index 6580afc6..affb2823 100644 --- a/src/components/form/select/select.tsx +++ b/src/components/form/select/select.tsx @@ -191,11 +191,14 @@ export const Select: React.FC = ({ }; const selectedOptionLabel = - selectedIndex !== null ? options[selectedIndex].label : undefined; + selectedIndex !== null ? options[selectedIndex]?.label : undefined; const selectedOptionValue = selectedIndex !== null - ? Object.prototype.hasOwnProperty.call(options[selectedIndex], "value") + ? Object.prototype.hasOwnProperty.call( + options[selectedIndex] || {}, + "value", + ) ? options[selectedIndex].value : selectedOptionLabel : "";