Skip to content

Commit

Permalink
Merge pull request #65 from obb8923/master
Browse files Browse the repository at this point in the history
  • Loading branch information
obb8923 authored May 10, 2024
2 parents 3f4abb4 + 7c50356 commit 7ab80c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion back/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ app.delete('/api/post/:postId', (req, res) => {

// /api/data 로 posts table 내용 보내기
app.get('/api/ScrollView', async(req, res) => {
res.json(await run.runQueries())

await run.runQueries();
res.json(await run.runQueries());

});

// /api/post/{postid} 로 post 정보 보내기
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
import PostFragment from './PostFragment';
import styles from "../css/ScrollView.module.css";
function ScrollView() {//무한스크롤
const count = 20;
const count = 7;
let index =0;
const [fragments, setFragments] = useState([]); // PostFragment 컴포넌트들을 담을 상태

Expand Down
1 change: 0 additions & 1 deletion front/src/css/MorePage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
.buttonBox div{
width:40px;
aspect-ratio: 1/1;
/* background-color: blueviolet; */
}
.libraryBox{
width:91vw;
Expand Down

0 comments on commit 7ab80c9

Please sign in to comment.