Skip to content

Commit c705c77

Browse files
committed
Chore: 콘솔 출력 제거
1 parent 05243cd commit c705c77

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

components/modal/AddFolderModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ const AddFolderModal = ({ folderName }: { folderName: string }) => {
1919
};
2020
if (value !== "") {
2121
try {
22-
const res = await postFolders(body);
23-
console.log(res);
22+
await postFolders(body);
2423
} catch (error) {
2524
console.log(error, "폴더 생성 에러");
2625
}

components/modal/AddModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ const AddModal = ({ list, link }: { list: FolderItemType[]; link: string }) => {
1515
};
1616
if (link !== "" && selectedId) {
1717
try {
18-
const res = await postLink(body);
19-
console.log(res);
18+
await postLink(body);
2019
} catch (error) {
2120
console.log(error, "링크 생성 에러");
2221
}

pages/api/folders/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1212

1313
if (req.method === "POST") {
1414
try {
15-
const response = await axiosInstance.post("/folders", req.body, {
15+
await axiosInstance.post("/folders", req.body, {
1616
headers: {
1717
Authorization: `Bearer ${token}`,
1818
},
1919
});
20-
console.log(response);
2120
return res.status(200).json({ message: "폴더 생성 성공" });
2221
} catch (error) {
2322
if (axios.isAxiosError(error) && error.response) {

pages/api/links/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1212

1313
if (req.method === "POST") {
1414
try {
15-
const response = await axiosInstance.post("/links", req.body, {
15+
await axiosInstance.post("/links", req.body, {
1616
headers: {
1717
Authorization: `Bearer ${token}`,
1818
},
1919
});
20-
console.log(response);
21-
return res.status(201).json({ message: "링크 추가 성공" }); // 테스트 필요
20+
return res.status(201).json({ message: "링크 추가 성공" });
2221
} catch (error) {
2322
if (isAxiosError(error) && error.response) {
2423
const status = error.response.status;

pages/test/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Test() {
3333
linkCount: 1,
3434
},
3535
],
36-
link: "https://example.com",
36+
link: "https://example1.com",
3737
})
3838
}
3939
>

0 commit comments

Comments
 (0)