From eacc16b7f1eb6d3ef60d35886180d8d179625354 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Thu, 16 Feb 2023 15:33:23 +0500 Subject: [PATCH] fix: copy link not working in in-context discussion (#439) Co-authored-by: adeel.tajamul --- 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));