Clear search term before displaying flagged posts (#3802)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
ad6363079d
Коммит
ccf9778520
@@ -134,18 +134,18 @@ export function unflagPost(postId, success) {
|
|||||||
export function getFlaggedPosts() {
|
export function getFlaggedPosts() {
|
||||||
Client.getFlaggedPosts(0, Constants.POST_CHUNK_SIZE,
|
Client.getFlaggedPosts(0, Constants.POST_CHUNK_SIZE,
|
||||||
(data) => {
|
(data) => {
|
||||||
AppDispatcher.handleServerAction({
|
|
||||||
type: ActionTypes.RECEIVED_SEARCH,
|
|
||||||
results: data,
|
|
||||||
is_flagged_posts: true
|
|
||||||
});
|
|
||||||
|
|
||||||
AppDispatcher.handleServerAction({
|
AppDispatcher.handleServerAction({
|
||||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||||
term: null,
|
term: null,
|
||||||
do_search: false,
|
do_search: false,
|
||||||
is_mention_search: false
|
is_mention_search: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
AppDispatcher.handleServerAction({
|
||||||
|
type: ActionTypes.RECEIVED_SEARCH,
|
||||||
|
results: data,
|
||||||
|
is_flagged_posts: true
|
||||||
|
});
|
||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
AsyncClient.dispatchError(err, 'getFlaggedPosts');
|
AsyncClient.dispatchError(err, 'getFlaggedPosts');
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user