updated array messaging structure
This commit is contained in:
@@ -58,8 +58,6 @@
|
||||
<td mat-cell *matCellDef="let element"> {{element.current}} </td>
|
||||
</ng-container>
|
||||
|
||||
|
||||
|
||||
<ng-container matColumnDef="frequency">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header> Frequency </th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.frequency}} </td>
|
||||
|
||||
@@ -94,7 +94,7 @@ export class HomeComponent implements OnInit, OnDestroy {
|
||||
// console.log(message);
|
||||
if (message instanceof Array) {
|
||||
message.forEach(element => {
|
||||
this.updateList(element);
|
||||
this.updateList(element.message);
|
||||
});
|
||||
} else {
|
||||
this.updateList(message);
|
||||
|
||||
Reference in New Issue
Block a user