Skip to content

Commit

Permalink
fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna committed Oct 17, 2023
1 parent 47daa24 commit 5c7f715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Components/Resource/CommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const CommentSection = (props: { id: string }) => {
<PaginatedList
route={routes.getResourceComments}
pathParams={{ id: props.id }}
query={{ limit, offset }}
>
{() => (
<div>
Expand Down
2 changes: 2 additions & 0 deletions src/Components/Resource/ResourceBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ export default function ResourceBoard({
if (res && data) {
setCurrentPage(1);
}
setIsLoading((loading) => reduceLoading("COMPLETE", loading));
},
});

useEffect(() => {
setIsLoading((loading) => reduceLoading("BOARD", loading));
refetch();
}, [
board,
Expand Down

0 comments on commit 5c7f715

Please sign in to comment.