mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 19:54:18 +00:00
TorrentContents: fix empty setFilePriority request
This commit is contained in:
@@ -118,7 +118,7 @@ const TorrentContents: FC = observer(() => {
|
||||
onChange={({event}) => {
|
||||
if (event.target != null && (event.target as HTMLInputElement).name === 'file-priority') {
|
||||
const inputElement = event.target as HTMLInputElement;
|
||||
if (inputElement.name === 'file-priority') {
|
||||
if (inputElement.value) {
|
||||
TorrentActions.setFilePriority(hash, {
|
||||
indices: selectedIndices,
|
||||
priority: Number(inputElement.value),
|
||||
|
||||
Reference in New Issue
Block a user