Commit 9354105c authored by Ben Hayward's avatar Ben Hayward

Added in guid check for repeating post

1 merge request!703[Sprint/VacantViper](fix) Live refresh of comments thread on entity change. #1658
Pipeline #106853671 failed with stages
in 25 minutes and 44 seconds
......@@ -323,7 +323,11 @@ export class CommentsThreadComponent implements OnInit {
// console.log('[comment:thread]: on changes', changes);
// reload on entity change.
if (changes.entity && changes.entity.previousValue) {
if (
changes.entity &&
changes.entity.previousValue &&
changes.entity.previousValue.guid !== changes.entity.currentValue.guid
) {
this.load(true);
}
}
......
Please register or to comment