Skip to content

Commit db99170

Browse files
committed
Fix: input에 값 남는 버그, CI 버그 해결
1 parent 68874c1 commit db99170

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

components/FolderTag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const FolderTag = ({ folderList }: FolderListData) => {
1111
const handleSubmit = (id: number | string) => {
1212
router.push({
1313
pathname: router.pathname,
14-
query: { ...router.query, folder: id },
14+
query: id ? { folder: id } : {},
1515
});
1616
};
1717

components/Link/AddLinkInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const AddLinkInput = ({ folderList }: FolderListData) => {
1515

1616
const handleClick = () => {
1717
openModal("AddModal", { list: folderList, link: link });
18+
setLink("");
1819
};
1920

2021
const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {

components/Search/SearchInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const SearchInput = () => {
1616
pathname: router.pathname,
1717
query: { ...router.query, search: value },
1818
});
19+
setValue("");
1920
};
2021

2122
return (

pages/link/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { useLinkCardStore } from "@/store/useLinkCardStore";
99
import { SearchInput } from "../../components/Search/SearchInput";
1010
import CardsLayout from "@/components/Layout/CardsLayout";
1111
import Container from "@/components/Layout/Container";
12-
import ActionButtons from "@/components/link/ActionButtons";
13-
import AddLinkInput from "@/components/link/AddLinkInput";
12+
import ActionButtons from "@/components/Link/ActionButtons";
13+
import AddLinkInput from "@/components/Link/AddLinkInput";
1414
import SearchResultMessage from "@/components/Search/SearchResultMessage";
1515
import useModalStore from "@/store/useModalStore";
1616
import FolderTag from "../../components/FolderTag";

0 commit comments

Comments
 (0)