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}
|
className={className}
|
||||||
>
|
>
|
||||||
{items.map(({ label, value }, index) => {
|
{items.map(({ label, value }, index) => {
|
||||||
if (label === current) {(
|
if (label === current) {
|
||||||
<option
|
return <option
|
||||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||||
key={[label, index].join("")}
|
key={[label, index].join("")}
|
||||||
value={value.toString()}
|
value={value.toString()}
|
||||||
|
@ -43,15 +43,15 @@ const Select = ({
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</option>
|
</option>
|
||||||
)} else {(
|
} else {
|
||||||
<option
|
return <option
|
||||||
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
data-testid={"option-" + (testId ? testId + "-" : "") + index}
|
||||||
key={[label, index].join("")}
|
key={[label, index].join("")}
|
||||||
value={value.toString()}
|
value={value.toString()}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</option>
|
</option>
|
||||||
)}
|
}
|
||||||
})}
|
})}
|
||||||
</select>
|
</select>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue