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