From 947dd1f1a64bf8b3f043241de2bf5b29d6795ddd Mon Sep 17 00:00:00 2001 From: Eugene Dyudyunov Date: Tue, 14 Mar 2023 21:50:02 +0200 Subject: [PATCH] fix: my posts tab search (#467) This is a backport from the master branch: https://github.com/openedx/frontend-app-discussions/pull/419 --- src/discussions/posts/PostsList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discussions/posts/PostsList.jsx b/src/discussions/posts/PostsList.jsx index 40c721b7..3b423852 100644 --- a/src/discussions/posts/PostsList.jsx +++ b/src/discussions/posts/PostsList.jsx @@ -48,7 +48,7 @@ function PostsList({ posts, topics, intl }) { topicIds, }; - if (showOwnPosts) { + if (showOwnPosts && filters.search === '') { dispatch(fetchUserPosts(courseId, params)); } else { dispatch(fetchThreads(courseId, params));