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 dce74a9 commit 3ea350eCopy full SHA for 3ea350e
src/components/CustomSelect.tsx
@@ -37,14 +37,16 @@ export default function CustomSelect(props: CustomSelectProps) {
37
const options = useMemo(
38
() => {
39
if (optionsList) {
40
- return optionsList.map((option, index) => {
41
- const number = unit.min === 0 ? index : index + 1
+ return optionsList
+ .map((option, index) => {
42
+ const number = unit.min === 0 ? index : index + 1
43
- return {
44
- value: number.toString(),
45
- label: option,
46
- }
47
- }).filter(filterOption)
+ return {
+ value: number.toString(),
+ label: option,
+ }
48
+ })
49
+ .filter(filterOption)
50
}
51
52
return [...Array(unit.total)]
0 commit comments