Skip to content

Commit

Permalink
#658 Error when saving comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schoicsiro committed Sep 21, 2023
1 parent 9e5f5a6 commit f3fb553
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ profileEditor.controller('CommentController', function (profileService, util, co
messageService.success("Comment successfully saved.");

var comment = null;

if (self.currentComment.uuid) {
comment = find(path);
comment.text = self.currentComment.text;
Expand All @@ -76,6 +77,9 @@ profileEditor.controller('CommentController', function (profileService, util, co
}
comment.children.push(data);
} else {
if (!Array.isArray(self.comments)) {
self.comments = [];
}
self.comments.push(data);
}

Expand Down

0 comments on commit f3fb553

Please sign in to comment.