Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/lounge/layout/LoungeSideView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function LoungeSideView() {
key={project.projectId}
className="border-t pt-3.5 first:border-t-0"
>
<Link to={`/lounge/post/${project.projectId}`}>
<Link to={`/lounge/post/${project.postId}`}>
<h2 className="line-clamp-3 text-darkGray-hover">
{project.title}
</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/trainee/ScrapedPostList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import MainView from '@/layouts/MainView';

import ScrapedPostCard from '@/components/user/ScrapedPostCard';

const filter = { page: 1, size: 3 };
const filter = { page: 1, size: 100 };

export default function ScrapedPostList() {
const params = useParams();
Expand Down
10 changes: 9 additions & 1 deletion src/services/admin/userToManageQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ export const useGetUserScrapList = (
`/admin/users/${userId}/scrap`,
{ params: { ...params, page: params.page - 1 } },
);
return data;
return {
...data,
content: data.content.map(({ postType, ptype, ...rest }) => {
return {
...rest,
postType: postType === 'PROJECT' ? ptype : postType,
};
}),
};
};

return useQuery({
Expand Down
Loading