Skip to content

Commit 1592423

Browse files
committed
๐Ÿ”จ fix : npm run build
1 parent cc52ffd commit 1592423

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

โ€Žsrc/app/(Main)/feed/FeedContent.tsxโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function FeedContent() {
2727

2828
useEffect(() => {
2929
fetchPoseFeed();
30+
// eslint-disable-next-line react-hooks/exhaustive-deps
3031
}, [filterState]);
3132

3233
return (

โ€Žsrc/app/(Main)/mypose/bookmark/BookmarkSecion.tsxโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { getClientCookie } from '@/utils';
88

99
export default function BookmarkSecion() {
1010
const accesstoken = getClientCookie(COOKIE_ACCESS_TOKEN);
11-
const query = useBookmarkFeedQuery({ enabled: accesstoken !== '' });
11+
// const query = useBookmarkFeedQuery({ enabled: accesstoken !== '' });
1212

1313
return (
14-
<FeedSection query={query}>
14+
<FeedSection data={null}>
1515
<BookmarkEmpty />
1616
</FeedSection>
1717
);

โ€Žsrc/app/(Sub)/detail/[id]/DetailSection.tsxโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default function DetailSection({ poseId }: DetailSectionProps) {
3333

3434
useEffect(() => {
3535
fetchDetail();
36+
// eslint-disable-next-line react-hooks/exhaustive-deps
3637
}, [poseId]);
3738

3839
// region method

โ€Žsrc/app/api/pose/pick/[peopleCount]/route.tsโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export async function GET(
4343

4444
const imageBlock = contentBlocks.find((block) => block.type === 'image');
4545

46-
if (!(imageBlock && 'file' in imageBlock.image)) {
46+
if (!(imageBlock && 'image' in imageBlock && 'file' in imageBlock.image)) {
4747
return NextResponse.json({ error: `No Image : ${randomPage.id}` }, { status: 500 });
4848
}
4949

5050
const imageUrl = imageBlock.image.file.url;
5151

5252
return NextResponse.json({
53-
imageUrl: imageUrl,
53+
imageUrl,
5454
});
5555
} catch (error) {
5656
console.error('[NOTION_API_ERROR]', error);

โ€Žsrc/app/api/pose/route.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function GET(req: NextRequest): Promise<ApiResponse<PoseFeedRespons
4848
page_size: 10,
4949
});
5050

51-
let contents: PoseDataI[] = [];
51+
const contents: PoseDataI[] = [];
5252
const resultPages = response.results as PageObjectResponse[];
5353

5454
for (const page of resultPages) {

0 commit comments

Comments
ย (0)