Browse Source

fix(EditSong): getReportsForSong not being passed songId

Owen Diffey 3 years ago
parent
commit
871405b3fa
1 changed files with 3 additions and 7 deletions
  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);