mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Handling case where child and parent_id are undefined.
This commit is contained in:
@@ -39,7 +39,9 @@ class CommentBox extends Component {
|
||||
related = 'comments';
|
||||
parent_type = 'assets';
|
||||
}
|
||||
updateItem(child_id || parent_id, 'showReply', false, 'comments');
|
||||
if (child_id || parent_id) {
|
||||
updateItem(child_id || parent_id, 'showReply', false, 'comments');
|
||||
}
|
||||
postItem(comment, 'comments')
|
||||
.then(({comment_id, status}) => {
|
||||
if (status === 'rejected') {
|
||||
|
||||
Reference in New Issue
Block a user