Github user tiborm commented on a diff in the pull request:

    https://github.com/apache/metron/pull/1077#discussion_r197804645
  
    --- Diff: 
metron-interface/metron-alerts/src/app/alerts/alert-details/alert-details.component.ts
 ---
    @@ -223,21 +222,23 @@ export class AlertDetailsComponent implements OnInit {
     
       onAddComment() {
         let alertComment = new AlertComment(this.alertCommentStr, 
this.authenticationService.getCurrentUserName(), new Date().getTime());
    -    let tAlertComments = this.alertCommentsWrapper.map(alertsWrapper => 
alertsWrapper.alertComment);
    -    tAlertComments.unshift(alertComment);
    -    this.patchAlert(new Patch('add', '/comments', tAlertComments));
    +    let newComments = this.alertCommentsWrapper.map(alertsWrapper => 
alertsWrapper.alertComment);
    --- End diff --
    
    and this is the alertComments extracted from the commentWrappers.


---

Reply via email to