소스 검색

fix: Unable to open editSongs from admin/songs/import

Owen Diffey 2 년 전
부모
커밋
cd7f188c2c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frontend/src/pages/Admin/Songs/Import.vue

+ 2 - 2
frontend/src/pages/Admin/Songs/Import.vue

@@ -343,8 +343,8 @@ const submitCreateImport = stage => {
 const editSongs = videos => {
 	const songs = videos.map(youtubeId => ({ youtubeId }));
 	if (songs.length === 1)
-		openModal({ modal: "editSong", data: { song: songs[0] } });
-	else openModal({ modal: "editSong", data: { songs } });
+		openModal({ modal: "editSong", props: { song: songs[0] } });
+	else openModal({ modal: "editSong", props: { songs } });
 };
 
 const importAlbum = youtubeIds => {