has to be returned
This commit is contained in:
parent
4ba197354e
commit
0f4923029a
1 changed files with 5 additions and 5 deletions
|
@ -34,8 +34,8 @@ const Select = ({
|
|||
className={className}
|
||||
>
|
||||
{items.map(({ label, value }, index) => {
|
||||
if (label === current) {(
|
||||
<option
|
||||
if (label === current) {
|
||||
return <option
|
||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||
key={[label, index].join("")}
|
||||
value={value.toString()}
|
||||
|
@ -43,15 +43,15 @@ const Select = ({
|
|||
>
|
||||
{label}
|
||||
</option>
|
||||
)} else {(
|
||||
<option
|
||||
} else {
|
||||
return <option
|
||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||
key={[label, index].join("")}
|
||||
value={value.toString()}
|
||||
>
|
||||
{label}
|
||||
</option>
|
||||
)}
|
||||
}
|
||||
})}
|
||||
</select>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue