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:
Eugene Dyudyunov
2023-03-14 21:50:02 +02:00
committed by GitHub
parent e158964c41
commit 947dd1f1a6

View File

@@ -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));