Преглед на файлове

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,