Browse Source

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

Kristian Vos 3 năm trước cách đây
mục cha
commit
0db78ce73a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 		});
 	},