Skip to content

Commit

Permalink
feat: Allow empty string category and tag
Browse files Browse the repository at this point in the history
Fixes #114
  • Loading branch information
scttcper committed Dec 11, 2022
1 parent 214f050 commit 35b4f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qbittorrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ export class QBittorrent implements TorrentClient {
params.filter = filter;
}

if (category) {
if (category !== undefined) {
params.category = category;
}

if (tag) {
if (tag !== undefined) {
params.tag = tag;
}

Expand Down

0 comments on commit 35b4f58

Please sign in to comment.