From 5c7f7154d77af3e2213562d92144bc7f83b94cda Mon Sep 17 00:00:00 2001 From: vivek Date: Tue, 17 Oct 2023 19:13:23 +0530 Subject: [PATCH] fix loading --- src/Components/Resource/CommentSection.tsx | 1 - src/Components/Resource/ResourceBoard.tsx | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Resource/CommentSection.tsx b/src/Components/Resource/CommentSection.tsx index f7df14228b6..4e872fe4e89 100644 --- a/src/Components/Resource/CommentSection.tsx +++ b/src/Components/Resource/CommentSection.tsx @@ -63,7 +63,6 @@ const CommentSection = (props: { id: string }) => { {() => (
diff --git a/src/Components/Resource/ResourceBoard.tsx b/src/Components/Resource/ResourceBoard.tsx index 16e354ba3b3..5d7fa058999 100644 --- a/src/Components/Resource/ResourceBoard.tsx +++ b/src/Components/Resource/ResourceBoard.tsx @@ -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,