File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import { getClientCookie } from '@/utils';
88
99export 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 ) ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) {
You canโt perform that action at this time.
0 commit comments