From 65a5fa2e3780a839bce366f6c90f349e5328a7f0 Mon Sep 17 00:00:00 2001 From: "adeel.tajamul" Date: Thu, 16 Feb 2023 12:10:12 +0500 Subject: [PATCH] fix: copy link not working in in-context discussion --- src/discussions/posts/post/Post.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discussions/posts/post/Post.jsx b/src/discussions/posts/post/Post.jsx index 0c6c8f93..db0d642b 100644 --- a/src/discussions/posts/post/Post.jsx +++ b/src/discussions/posts/post/Post.jsx @@ -33,7 +33,7 @@ function Post({ const history = useHistory(); const dispatch = useDispatch(); const { enableInContextSidebar } = useContext(DiscussionContext); - const { courseId } = useSelector((state) => state.courseTabs); + const courseId = useSelector((state) => state.config.id); const topic = useSelector(selectTopic(post.topicId)); const getTopicSubsection = useSelector(selectorForUnitSubsection); const topicContext = useSelector(selectTopicContext(post.topicId));