瀏覽代碼

fix: EditSongs song removal event didn't properly get handled

Kristian Vos 3 年之前
父節點
當前提交
0db78ce73a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/src/components/modals/EditSongs.vue

+ 1 - 1
frontend/src/components/modals/EditSongs.vue

@@ -275,7 +275,7 @@ export default {
 		this.socket.on(`event:admin.song.removed`, res => {
 			const index = this.items
 				.map(item => item.song._id)
-				.indexOf(res.songId);
+				.indexOf(res.data.songId);
 			this.items[index].song.removed = true;
 		});
 	},