fix: my posts tab search (#467)
This is a backport from the master branch: https://github.com/openedx/frontend-app-discussions/pull/419
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user