Skip to content

Commit

Permalink
Merge pull request #1764 from DSD-DBS/fix-tool-version-subscription-i…
Browse files Browse the repository at this point in the history
…ssue

fix: Destroy session history subscription
  • Loading branch information
MoritzWeber0 authored Sep 10, 2024
2 parents 860bccd + a685d78 commit abc7a00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class CreateSessionHistoryComponent implements OnInit, OnDestroy {
loadLastSessions() {
this.toolService._tools.pipe(filter(Boolean), take(1)).subscribe(() => {
this.sessionHistoryService.sessionHistory
.pipe(filter(Boolean))
.pipe(filter(Boolean), take(1))
.subscribe((sessions) => {
this.resolvedHistory = [];
this.sessionsToBeLoaded = sessions.length;
Expand Down

0 comments on commit abc7a00

Please sign in to comment.