Skip to content

Commit 1d04c34

Browse files
authored
fix: status filter not shown (#4108)
Signed-off-by: Cheyu Wu <[email protected]>
1 parent cb86f9f commit 1d04c34

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dashboard/src/components/ClearableSelect.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import Select, { SelectProps, SelectStaticProps } from "@mui/joy/Select";
55
import React from "react";
66

77
// ClearableSelect is a single select component that offers a clear button
8-
export default function ClearableSelect<
9-
OptionValue extends object,
10-
D extends React.ElementType = "button",
11-
>(props: SelectProps<OptionValue, false, D>) {
8+
export default function ClearableSelect<D extends React.ElementType = "button">(
9+
props: SelectProps<string, false, D>,
10+
) {
1211
const action: SelectStaticProps["action"] = React.useRef(null);
1312
return (
1413
<Select

dashboard/src/components/FrontendTable/FrontendTableToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const FrontendTableToolbar: React.FC<FrontendTableToolbarProps> = ({
5858
size="sm"
5959
placeholder="Filter by status"
6060
slotProps={{ button: { sx: { whiteSpace: "nowrap" } } }}
61-
value={statusFilter ? { value: statusFilter } : null}
61+
value={statusFilter}
6262
onChange={(e, newValue) => setStatusFilter(newValue)}
6363
>
6464
{statuses.map((status, index) => (

0 commit comments

Comments
 (0)