Skip to content

Commit

Permalink
feature-062: 폴더가 같은 곳에 놓아질 경우 API 요청 막음
Browse files Browse the repository at this point in the history
  • Loading branch information
gs0428 committed Feb 13, 2024
1 parent 535eed3 commit fdf928a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/layout/sideBar/UserMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const UserMode = () => {
};

const putCategoryFolder = async () => {
if (grabedCategory.current?.categoryId === dropedCategory.current) return;

let response;
if (grabedCategory.current?.topCategoryId === -1) {
response = await subToTop(grabedCategory);
Expand Down

0 comments on commit fdf928a

Please sign in to comment.