Browse Source

Fixed issue with opening song edit modal from url

Kristian Vos 4 years ago
parent
commit
ce92dfd35e
1 changed files with 1 additions and 6 deletions
  1. 1 6
      frontend/src/pages/Admin/tabs/Songs.vue

+ 1 - 6
frontend/src/pages/Admin/tabs/Songs.vue

@@ -402,12 +402,7 @@ export default {
 		if (this.$route.query.songId) {
 			this.socket.emit("songs.getSong", this.$route.query.songId, res => {
 				if (res.status === "success") {
-					this.edit(res.data);
-
-					this.closeModal({
-						sector: "admin",
-						modal: "viewReport"
-					});
+					this.edit(res.data.song);
 				} else
 					new Toast({
 						content: "Song with that ID not found",