Skip to content

Commit

Permalink
fix(category): typeof type error
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Aug 10, 2022
1 parent f7501a2 commit 34fb907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Posts/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author: Wibus
* @Date: 2022-08-01 14:25:48
* @LastEditors: Wibus
* @LastEditTime: 2022-08-03 13:40:02
* @LastEditTime: 2022-08-10 18:30:42
* Coding With IU
*/

Expand Down Expand Up @@ -234,7 +234,7 @@ export const Category: BasicPage = () => {
if (selectCategory.from && selectCategory.to) {
await apiClient
.post("/categories/merge", null, null, {
type: "Category",
type: 0,
...selectCategory,
})
.then(() => {
Expand Down Expand Up @@ -310,7 +310,7 @@ export const Category: BasicPage = () => {
if (selectCategory.from && selectCategory.to) {
await apiClient
.post("/categories/merge", null, null, {
type: "Tags",
type: 1,
...selectCategory,
})
.then(() => {
Expand Down

0 comments on commit 34fb907

Please sign in to comment.