瀏覽代碼

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 => {