Selaa lähdekoodia

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

Kristian Vos 5 vuotta sitten
vanhempi
commit
0127199750
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  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) {