Fix max length prop to be a number (#1558)
This commit is contained in:
parent
6698dbf678
commit
a4744e46dd
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ function mapStateToProps(state, ownProps) {
|
|||
currentUserId: getCurrentUserId(state),
|
||||
deactivatedChannel,
|
||||
files: currentDraft.files,
|
||||
maxMessageLength: (config && config.MaxPostSize) || MAX_MESSAGE_LENGTH,
|
||||
maxMessageLength: (config && parseInt(config.MaxPostSize || 0, 10)) || MAX_MESSAGE_LENGTH,
|
||||
theme: getTheme(state),
|
||||
uploadFileRequestStatus: state.requests.files.uploadFiles.status,
|
||||
value: currentDraft.draft,
|
||||
|
|
|
|||
Loading…
Reference in a new issue