From c8879d7c077142a2842b8f1b4455a9712b45d80d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 31 Oct 2017 11:51:45 +0300 Subject: [PATCH] Comments refactoring. --- apps/common/main/lib/controller/Comments.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index bc59760eb..7fd24d159 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -802,6 +802,8 @@ define([ saveTxtReplyId = uids[i] + '-R'; comment = this.findComment(saveTxtId); + if (!comment) continue; + if (this.subEditStrings[saveTxtId] && !hint) { comment.set('editTextInPopover', true); text = this.subEditStrings[saveTxtId]; @@ -905,6 +907,8 @@ define([ saveTxtReplyId = uids[i] + '-R'; comment = this.findComment(saveTxtId); + if (!comment) continue; + if (this.subEditStrings[saveTxtId]) { comment.set('editTextInPopover', true); text = this.subEditStrings[saveTxtId];