Browse Source

fix(Station page): there are no longer inconsistencies when handling song artists

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 years ago
parent
commit
823340a96d

+ 0 - 1
frontend/src/components/modals/Report.vue

@@ -264,7 +264,6 @@ export default {
 	},
 	methods: {
 		create() {
-			console.log(this.report);
 			this.socket.dispatch("reports.create", this.report, res => {
 				new Toast({ content: res.message, timeout: 4000 });
 				if (res.status === "success")

+ 1 - 1
frontend/src/pages/Station/components/CurrentlyPlaying.vue

@@ -29,7 +29,7 @@
 					{{ currentSong.title }}
 				</h4>
 				<h5 id="song-artists" v-if="currentSong.artists">
-					{{ currentSong.artists }}
+					{{ currentSong.artists.join(", ") }}
 				</h5>
 				<p
 					id="song-request-time"

+ 0 - 10
frontend/src/pages/Station/index.vue

@@ -642,11 +642,6 @@ export default {
 			if (currentSong) {
 				this.updateNoSong(false);
 
-				if (this.currentSong.artists)
-					this.currentSong.artists = this.currentSong.artists.join(
-						", "
-					);
-
 				if (!this.playerReady) this.youtubeReady();
 				else this.playVideo();
 
@@ -1518,11 +1513,6 @@ export default {
 							? res.data.currentSong
 							: {};
 
-						if (currentSong.artists)
-							currentSong.artists = currentSong.artists.join(
-								", "
-							);
-
 						if (currentSong && !currentSong.thumbnail)
 							currentSong.ytThumbnail = `https://img.youtube.com/vi/${currentSong.songId}/mqdefault.jpg`;