Fix bug 63202 - Web: Client: VersionHistory - corrected the logic for inserting text in the version comments
This commit is contained in:
parent
a1df1be7c6
commit
4462c30e7e
@ -69,7 +69,9 @@ const VersionRow = (props) => {
|
||||
const onChange = (e) => {
|
||||
const value = e.target.value;
|
||||
|
||||
if (value.length > MAX_FILE_COMMENT_LENGTH) return;
|
||||
if (value.length > MAX_FILE_COMMENT_LENGTH) {
|
||||
return setCommentValue(value.slice(0, MAX_FILE_COMMENT_LENGTH));
|
||||
}
|
||||
|
||||
setCommentValue(value);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user