fix(Comment): Block data submission when comment value is empty

This commit is contained in:
haitao(lj)
2023-01-06 18:44:29 +08:00
parent f5f9958627
commit e670a6fbec
+3
View File
@@ -100,6 +100,9 @@ const Comment = ({ objectId, mode, commentId }) => {
const users = matchedUsers(item.value);
const userNames = unionBy(users.map((user) => user.userName));
const html = marked.parse(parseUserInfo(item.value));
if (!item.value || !html) {
return;
}
const params = {
object_id: objectId,
original_text: item.value,