Sfoglia il codice sorgente

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

Owen Diffey 2 anni fa
parent
commit
cd7f188c2c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 => {