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 6c48897 commit c539fb6Copy full SHA for c539fb6
frontend/src/components/Questions/QuestionsTable.tsx
@@ -85,9 +85,16 @@ const filteredQuestions = questionsData.filter(question =>
85
{/* Category Filter */}
86
<Select
87
multiple
88
+ displayEmpty
89
value={selectedCategories}
90
onChange={handleCategoriesChange}
- renderValue={(selected) => (selected as string[]).join(", ")}
91
+ renderValue={(selected) => {
92
+ if (selected.length === 0) {
93
+ return <em>Filter by category</em>;
94
+ } else {
95
+ return (selected as string[]).join(", ")}
96
+ }
97
98
style={{ marginTop: "10px", marginBottom: "10px", width: "80%" }}
99
>
100
{uniqueCategories.map((category) => (
0 commit comments