mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Improve Post component
This commit is contained in:
@@ -17,6 +17,8 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
},
|
||||
|
||||
changePostStatus(postId: number, newPostStatusId: number, authenticityToken: string) {
|
||||
if (isNaN(newPostStatusId)) newPostStatusId = null;
|
||||
|
||||
dispatch(changePostStatus(postId, newPostStatusId, authenticityToken));
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user