소스 검색

Fixed issue with opening song edit modal from url

Kristian Vos 4 년 전
부모
커밋
ce92dfd35e
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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",