Skip to content

Commit

Permalink
Fix double chat in follow along #1
Browse files Browse the repository at this point in the history
  • Loading branch information
circlesabound committed Mar 31, 2024
1 parent 3a5d36d commit 51e3497
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions web/src/app/logs/chat/chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { faHistory } from '@fortawesome/free-solid-svg-icons';
templateUrl: './chat.component.html',
styleUrls: ['./chat.component.sass']
})
export class ChatComponent implements OnInit, OnDestroy {
export class ChatComponent implements OnDestroy {
text = '';

streamLogsSub: Option<Subscription>;
Expand All @@ -37,10 +37,6 @@ export class ChatComponent implements OnInit, OnDestroy {
this.fetchPreviousMarker = Option.none();
}

ngOnInit(): void {
this.streamLogs();
}

ngOnDestroy(): void {
this.streamLogsSub.ifSome(s => s.unsubscribe());
}
Expand Down

0 comments on commit 51e3497

Please sign in to comment.