File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/webui/www/private/scripts Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -409,19 +409,19 @@ window.qBittorrent.TorrentContent ??= (() => {
409
409
fileIds . push ( Number ( torrentFilesTable . getRowFileId ( rowId ) ) ) ;
410
410
} ) ;
411
411
412
- const uniqueRowIds = { } ;
413
- const uniqueFileIds = { } ;
412
+ const uniqueRowIds = new Set ( ) ;
413
+ const uniqueFileIds = new Set ( ) ;
414
414
for ( let i = 0 ; i < rowIds . length ; ++ i ) {
415
415
const rows = getAllChildren ( rowIds [ i ] , fileIds [ i ] ) ;
416
416
rows . rowIds . forEach ( ( rowId ) => {
417
- uniqueRowIds [ rowId ] = true ;
417
+ uniqueRowIds . add ( rowId ) ;
418
418
} ) ;
419
419
rows . fileIds . forEach ( ( fileId ) => {
420
- uniqueFileIds [ fileId ] = true ;
420
+ uniqueFileIds . add ( fileId ) ;
421
421
} ) ;
422
422
}
423
423
424
- setFilePriority ( Object . keys ( uniqueRowIds ) , Object . keys ( uniqueFileIds ) , priority ) ;
424
+ setFilePriority ( [ ... uniqueRowIds . keys ( ) ] , [ ... uniqueFileIds . keys ( ) ] , priority ) ;
425
425
for ( const id of rowIds )
426
426
updateParentFolder ( id ) ;
427
427
} ;
You can’t perform that action at this time.
0 commit comments