Explorar el Código

fix: fixed issue where EditSong Discogs selected track info could be changed

Kristian Vos hace 5 años
padre
commit
0127199750
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      frontend/components/Modals/EditSong.vue

+ 6 - 2
frontend/components/Modals/EditSong.vue

@@ -808,12 +808,16 @@ export default {
 			if (type === "genres")
 				this.updateSongField({
 					field: "genres",
-					value: this.editing.song.discogs.album.genres
+					value: JSON.parse(
+						JSON.stringify(this.editing.song.discogs.album.genres)
+					)
 				});
 			if (type === "artists")
 				this.updateSongField({
 					field: "artists",
-					value: this.editing.song.discogs.album.artists
+					value: JSON.parse(
+						JSON.stringify(this.editing.song.discogs.album.artists)
+					)
 				});
 		},
 		searchDiscogsForPage(page) {