updated array messaging structure

This commit is contained in:
2019-12-30 15:47:38 -06:00
parent 4717b809f5
commit b59d2a63dc
2 changed files with 1 additions and 3 deletions

View File

@@ -58,8 +58,6 @@
<td mat-cell *matCellDef="let element"> {{element.current}} </td> <td mat-cell *matCellDef="let element"> {{element.current}} </td>
</ng-container> </ng-container>
<ng-container matColumnDef="frequency"> <ng-container matColumnDef="frequency">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Frequency </th> <th mat-header-cell *matHeaderCellDef mat-sort-header> Frequency </th>
<td mat-cell *matCellDef="let element"> {{element.frequency}} </td> <td mat-cell *matCellDef="let element"> {{element.frequency}} </td>

View File

@@ -94,7 +94,7 @@ export class HomeComponent implements OnInit, OnDestroy {
// console.log(message); // console.log(message);
if (message instanceof Array) { if (message instanceof Array) {
message.forEach(element => { message.forEach(element => {
this.updateList(element); this.updateList(element.message);
}); });
} else { } else {
this.updateList(message); this.updateList(message);