From 5af0d742ef789267f7968b802135f778d8901f84 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Thu, 26 Mar 2020 13:28:26 -0400 Subject: [PATCH] Fixed bug where updating an audio playlist would cause it to believe it was a video playlist --- src/app/player/player.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/player/player.component.ts b/src/app/player/player.component.ts index 3bdef05..61f2fe9 100644 --- a/src/app/player/player.component.ts +++ b/src/app/player/player.component.ts @@ -264,7 +264,7 @@ export class PlayerComponent implements OnInit { this.playlist_updating = false; if (res['success']) { const fileNamesEncoded = fileNames.join('|nvr|'); - this.router.navigate(['/player', {fileNames: fileNamesEncoded, type: 'video', id: this.id}]); + this.router.navigate(['/player', {fileNames: fileNamesEncoded, type: this.type, id: this.id}]); this.openSnackBar('Successfully updated playlist.', ''); this.original_playlist = JSON.stringify(this.playlist); } else {