Преглед на файлове

fix(EditSong): getReportsForSong not being passed songId

Owen Diffey преди 3 години
родител
ревизия
871405b3fa
променени са 1 файла, в които са добавени 3 реда и са изтрити 7 реда
  1. 3 7
      frontend/src/components/modals/EditSong/index.vue

+ 3 - 7
frontend/src/components/modals/EditSong/index.vue

@@ -1287,13 +1287,9 @@ export default {
 				}
 			});
 
-			this.socket.dispatch(
-				"reports.getReportsForSong",
-				this.song._id,
-				res => {
-					this.updateReports(res.data.reports);
-				}
-			);
+			this.socket.dispatch("reports.getReportsForSong", songId, res => {
+				this.updateReports(res.data.reports);
+			});
 		},
 		importAlbum(result) {
 			this.selectDiscogsAlbum(result);