Browse Source

Added null check

pull/15039/head
malik masis 4 years ago
parent
commit
d496d3b62d
  1. 3
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/default.js

3
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/default.js

@ -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