File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ const QuestionFilter: React.FC<QuestionFilterProps> = ({
66
66
< SelectContent >
67
67
< SelectItem value = "all" > All</ SelectItem >
68
68
{ CategoryEnumArray . map ( ( category ) => (
69
- < SelectItem value = { category } > { category } </ SelectItem >
69
+ < SelectItem key = { category } value = { category } >
70
+ { category }
71
+ </ SelectItem >
70
72
) ) }
71
73
</ SelectContent >
72
74
</ Select >
@@ -83,7 +85,9 @@ const QuestionFilter: React.FC<QuestionFilterProps> = ({
83
85
< SelectContent >
84
86
< SelectItem value = "all" > All</ SelectItem >
85
87
{ ComplexityEnumArray . map ( ( complexity ) => (
86
- < SelectItem value = { complexity } > { complexity } </ SelectItem >
88
+ < SelectItem key = { complexity } value = { complexity } >
89
+ { complexity }
90
+ </ SelectItem >
87
91
) ) }
88
92
</ SelectContent >
89
93
</ Select >
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ const QuestionFormModal: React.FC<QuestionFormModalProps> = ({ ...props }) => {
124
124
</ SelectTrigger >
125
125
< SelectContent >
126
126
{ ComplexityEnumArray . map ( ( complexity ) => (
127
- < SelectItem value = { complexity } >
127
+ < SelectItem key = { complexity } value = { complexity } >
128
128
{ complexity }
129
129
</ SelectItem >
130
130
) ) }
Original file line number Diff line number Diff line change 1
1
// src/components/multi-select.tsx
2
2
3
+ /* eslint-disable no-unused-vars */
4
+
3
5
import * as React from "react" ;
4
6
import { cva , type VariantProps } from "class-variance-authority" ;
5
7
import {
You can’t perform that action at this time.
0 commit comments