Skip to content

Commit

Permalink
fix: missing label on search
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 9, 2024
1 parent efd4a98 commit 36f2bd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/layout/drawer/ItemSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export const GenericSearch = React.forwardRef(
return (
<TextField
ref={ref}
label={t(label)}
label={t(
label ??
`search_${field.split('.').pop().replace('QuickSelect', '')}`,
)}
variant="outlined"
fullWidth
size="small"
Expand All @@ -52,6 +55,7 @@ export const GenericSearch = React.forwardRef(
onChange={onChange}
InputProps={InputProps}
{...props}
autoComplete="off"
/>
)
},
Expand Down

0 comments on commit 36f2bd8

Please sign in to comment.