1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

apply suggestion

This commit is contained in:
grafixeyehero 2024-05-30 15:39:25 +03:00
parent a51d700eff
commit c135be012c

View file

@ -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);
} }