Skip to content
This repository was archived by the owner on Aug 29, 2022. It is now read-only.

Commit fb2d1c5

Browse files
committed
Displaying Conversations List In Reverse
1 parent eb65734 commit fb2d1c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui-trainer/src/app/conversations/conversations.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class ConversationsComponent implements OnInit, OnDestroy {
3838
getConversations() {
3939
this.apiService.requestConversations().subscribe(conversations => {
4040
if (conversations) {
41-
this.conversations_json = conversations.slice();
41+
this.conversations_json = conversations.slice().reverse();
4242
this.conversations_json_backup = JSON.parse(JSON.stringify(this.conversations_json));
4343
this.conversationsDataSource = new MatTableDataSource(this.conversations_json);
4444
this.conversationsDataSource.paginator = this.paginator;

0 commit comments

Comments
 (0)