소스 검색

fix(Station): Current song not being set correctly

Owen Diffey 2 년 전
부모
커밋
4ce8baaeda
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 7
      frontend/src/pages/Station/index.vue

+ 2 - 7
frontend/src/pages/Station/index.vue

@@ -1188,15 +1188,10 @@ onMounted(async () => {
 	});
 
 	socket.on("event:station.nextSong", res => {
-		const {
-			currentSong: _currentSong,
-			startedAt,
-			paused,
-			timePaused
-		} = res.data;
+		const { currentSong, startedAt, paused, timePaused } = res.data;
 
 		setCurrentSong({
-			_currentSong,
+			currentSong,
 			startedAt,
 			paused,
 			timePaused,