Parcourir la source

fix(EditSong): song-item scrollIntoView not functioning

Owen Diffey il y a 2 ans
Parent
commit
9cf3f0a759
1 fichiers modifiés avec 2 ajouts et 7 suppressions
  1. 2 7
      frontend/src/components/modals/EditSong/index.vue

+ 2 - 7
frontend/src/components/modals/EditSong/index.vue

@@ -236,13 +236,8 @@ const pickSong = song => {
 		prefill: songPrefillData.value[song.youtubeId]
 	});
 	currentSong.value = song;
-	if (
-		songItems.value[`edit-songs-item-${song.youtubeId}`] &&
-		songItems.value[`edit-songs-item-${song.youtubeId}`][0]
-	)
-		songItems.value[
-			`edit-songs-item-${song.youtubeId}`
-		][0].scrollIntoView();
+	if (songItems.value[`edit-songs-item-${song.youtubeId}`])
+		songItems.value[`edit-songs-item-${song.youtubeId}`].scrollIntoView();
 };
 
 const editNextSong = () => {