mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion
This commit is contained in:
parent
a51d700eff
commit
c135be012c
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ const SearchFields: FC<SearchFieldsProps> = ({
|
||||||
const inputValue = inputRef.current?.value || '';
|
const inputValue = inputRef.current?.value || '';
|
||||||
|
|
||||||
if (value === 'backspace') {
|
if (value === 'backspace') {
|
||||||
onSearch(inputValue.length ? inputValue.substring(0, inputValue.length - 1) : ''
|
onSearch(inputValue.length ? inputValue.substring(0, inputValue.length - 1) : '');
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
onSearch(inputValue + value);
|
onSearch(inputValue + value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue