Browse Source

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

Kristian Vos 5 năm trước cách đây
mục cha
commit
0127199750
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  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) {