diff --git a/frontend/techpick/src/apis/pick/pickApi.type.ts b/frontend/techpick/src/apis/pick/pickApi.type.ts index d6187bc72..58c2b9524 100644 --- a/frontend/techpick/src/apis/pick/pickApi.type.ts +++ b/frontend/techpick/src/apis/pick/pickApi.type.ts @@ -4,6 +4,5 @@ import type { components } from '@/schema'; export type GetPickResponseType = Concrete< components['schemas']['techpick.api.application.pick.dto.PickApiResponse$Pick'] >; -export type UpdatePickRequestType = Concrete< - components['schemas']['techpick.api.application.pick.dto.PickApiRequest$Update'] ->; +export type UpdatePickRequestType = + components['schemas']['techpick.api.application.pick.dto.PickApiRequest$Update']; diff --git a/frontend/techpick/src/app/(signed)/folders/search/page.tsx b/frontend/techpick/src/app/(signed)/folders/search/page.tsx index 72de808b4..55c900a62 100644 --- a/frontend/techpick/src/app/(signed)/folders/search/page.tsx +++ b/frontend/techpick/src/app/(signed)/folders/search/page.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState } from 'react'; +import { useEffect, useState } from 'react'; import { useSearchParams } from 'next/navigation'; import { PickListViewerInfiniteScroll } from '@/components/PickListViewer/PickListViewerInfiniteScroll'; import { usePickStore } from '@/stores/pickStore/pickStore'; @@ -11,6 +11,13 @@ export default function SearchPickResultPage() { const { getSearchResult, searchPicksByQueryParam } = usePickStore(); const [pickList, setPickList] = useState([]); + useEffect(() => { + setPickList([]); + (async () => { + await loadNextSlice(); + })(/*IIFE*/); + }, [searchParams]); + const loadNextSlice = async () => { await searchPicksByQueryParam( searchParams.toString(), diff --git a/frontend/techpick/src/stores/dndTreeStore/dndTreeStore.ts b/frontend/techpick/src/stores/dndTreeStore/dndTreeStore.ts index 40877e502..394add84a 100644 --- a/frontend/techpick/src/stores/dndTreeStore/dndTreeStore.ts +++ b/frontend/techpick/src/stores/dndTreeStore/dndTreeStore.ts @@ -111,6 +111,8 @@ export const useTreeStore = create()( parentFolderId: parentFolderId, childFolderIdOrderedList: [], folderType: 'GENERAL', + updatedAt: new Date().toDateString(), // TODO: 급하게 했습니다.. 꼭 고칩시다... + createdAt: new Date().toDateString(), // TODO: 급하게 했습니다.. 꼭 고칩시다... }; const curChildFolderList =