Added null check

pull/15039/head
malik masis 3 years ago
parent 88b9483cc0
commit d496d3b62d

@ -126,6 +126,7 @@
if (formAsObject.repliedCommentId == '') {
formAsObject.repliedCommentId = null;
}
volo.cmsKit.public.comments.commentPublic.create(
$commentArea.attr('data-entity-type'),
$commentArea.attr('data-entity-id'),
@ -133,7 +134,7 @@
repliedCommentId: formAsObject.repliedCommentId,
text: formAsObject.commentText,
captchaToken: formAsObject.captchaId,
captchaAnswer: formAsObject.input.captcha
captchaAnswer: formAsObject.input?.captcha
}
).then(function () {
widgetManager.refresh($widget);

Loading…
Cancel
Save