Add back blue bar error for editing post after time limit (#6939)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
cd5703c027
Коммит
3ad3aa653f
@@ -182,6 +182,13 @@ export function updatePost(post, success) {
|
|||||||
(data) => {
|
(data) => {
|
||||||
if (data && success) {
|
if (data && success) {
|
||||||
success();
|
success();
|
||||||
|
} else {
|
||||||
|
const serverError = getState().requests.posts.editPost.error;
|
||||||
|
AppDispatcher.handleServerAction({
|
||||||
|
type: ActionTypes.RECEIVED_ERROR,
|
||||||
|
err: {id: serverError.server_error_id, ...serverError},
|
||||||
|
method: 'editPost'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user