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.
2 parents 8145fc0 + c539fb6 commit 25f6e2bCopy full SHA for 25f6e2b
frontend/src/components/Questions/QuestionsTable.tsx
@@ -103,9 +103,16 @@ const InterviewQuestionsTable: React.FC = () => {
103
{/* Category Filter */}
104
<Select
105
multiple
106
+ displayEmpty
107
value={selectedCategories}
108
onChange={handleCategoriesChange}
- renderValue={(selected) => (selected as string[]).join(", ")}
109
+ renderValue={(selected) => {
110
+ if (selected.length === 0) {
111
+ return <em>Filter by category</em>;
112
+ } else {
113
+ return (selected as string[]).join(", ")}
114
+ }
115
116
style={{ marginTop: "10px", marginBottom: "10px", width: "80%" }}
117
>
118
{uniqueCategories.map((category) => (
0 commit comments