MM-13751: Fix for incorrect access to delete button. (#2508)

This commit is contained in:
Martin Kraft 2019-01-14 10:06:24 -05:00 committed by GitHub
parent e1853c6682
commit 704b52a813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ function mapStateToProps(state, ownProps) {
let canAddReaction = true;
let canEdit = false;
let canEditUntil = -1;
let canDelete = true;
let {canDelete} = ownProps;
let canPin = true;
if (hasNewPermissions(state)) {