WebUI: Fix editing/creating category
Some checks are pending
CI - File health / Check (push) Waiting to run
CI - macOS / Build (push) Waiting to run
CI - Python / Check (push) Waiting to run
CI - Ubuntu / Build (push) Waiting to run
CI - WebUI / Check (push) Waiting to run
CI - Windows / Build (push) Waiting to run

This broke in #22938.

Closes #23042.
PR #23056.
This commit is contained in:
Thomas Piccirello 2025-08-04 03:29:33 -07:00 committed by GitHub
commit e86cc22b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,7 +172,7 @@
fetch("api/v2/torrents/createCategory", { fetch("api/v2/torrents/createCategory", {
method: "POST", method: "POST",
body: new URLSearchParams({ body: new URLSearchParams({
...body, ...dlPathParams,
category: categoryName, category: categoryName,
savePath: savePath savePath: savePath
}) })
@ -192,7 +192,7 @@
fetch("api/v2/torrents/editCategory", { fetch("api/v2/torrents/editCategory", {
method: "POST", method: "POST",
body: new URLSearchParams({ body: new URLSearchParams({
...body, ...dlPathParams,
category: uriCategoryName, // category name can't be changed category: uriCategoryName, // category name can't be changed
savePath: savePath savePath: savePath
}) })