Commit 9354105c authored by Ben's avatar Ben
Browse files

Added in guid check for repeating post

parent d185b744
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -323,7 +323,11 @@ export class CommentsThreadComponent implements OnInit {
    // console.log('[comment:thread]: on changes', changes);
    // console.log('[comment:thread]: on changes', changes);


    // reload on entity change.
    // 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);
      this.load(true);
    }
    }
  }
  }