Fix bug 63202 - Web: Client: VersionHistory - corrected the logic for inserting text in the version comments

This commit is contained in:
DmitrySychugov 2023-06-28 17:59:51 +05:00
parent a1df1be7c6
commit 4462c30e7e

View File

@ -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);
};