[Comments] Fix opening comment action

This commit is contained in:
Julia Radzhabova 2019-07-16 17:50:21 +03:00
parent 511888dc4e
commit 8cc4803b82

View file

@ -282,7 +282,12 @@ define([
return false;
},
onShowComment: function (id, selected) {
var comment = (typeof id == Object) ? id : this.findComment(id);
var comment;
if (typeof id == 'object') {
comment = id;
id = comment.get('uid');
} else
comment = this.findComment(id);
if (comment) {
if (null !== comment.get('quote')) {
if (this.api) {