fix: use threads api in case of search (#419)
* fix: use threads api in case of search
This commit is contained in:
@@ -50,8 +50,7 @@ function PostsList({
|
||||
topicIds,
|
||||
isFilterChanged,
|
||||
};
|
||||
|
||||
if (showOwnPosts) {
|
||||
if (showOwnPosts && filters.search === '') {
|
||||
dispatch(fetchUserPosts(courseId, params));
|
||||
} else {
|
||||
dispatch(fetchThreads(courseId, params));
|
||||
|
||||
Reference in New Issue
Block a user