Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small updates. #2396

Merged
merged 1 commit into from
Dec 20, 2024
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
4 changes: 2 additions & 2 deletions src/components/ComponentPages/CampForum/PostPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ const CommentsList = () => {
const topicArr = (queries.topic as string).split("-");
const topic_num = topicArr.shift();

setTimeout(() => {
// setTimeout(() => {
getSelectedNode(topic_num, camp_num, asof, asofdate, algorithm);
}, 300);
// }, 300);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [router?.query]);
Expand Down
14 changes: 7 additions & 7 deletions src/components/ComponentPages/CampForum/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export const getSelectedNode = async (
update_all: 1,
};

await Promise.all([
getCurrentTopicRecordApi(reqBody),
getCurrentCampRecordApi(reqBody),
]);
await getCurrentTopicRecordApi(reqBody);
await setTimeout(async () => {
await getCurrentCampRecordApi(reqBody);
}, 200);
};

const ForumComponent = () => {
Expand Down Expand Up @@ -117,9 +117,9 @@ const ForumComponent = () => {
const topicArr = (queries.topic as string).split("-");
const topic_num = topicArr.shift();

setTimeout(() => {
getSelectedNode(topic_num, camp_num, asof, asofdate, algorithm);
}, 300);
// setTimeout(() => {
getSelectedNode(topic_num, camp_num, asof, asofdate, algorithm);
// }, 300);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [router?.query]);
Expand Down
Loading