浏览代码

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

Kristian Vos 5 年之前
父节点
当前提交
0127199750
共有 1 个文件被更改,包括 6 次插入2 次删除
  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) {