Selaa lähdekoodia

fix: EditSong youtube video duration would sometimes not update after changing the youtube id

Kristian Vos 2 vuotta sitten
vanhempi
commit
42bc2538df
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      frontend/src/components/modals/EditSong/index.vue

+ 5 - 0
frontend/src/components/modals/EditSong/index.vue

@@ -219,6 +219,11 @@ const loadSong = (_youtubeId: string, reset?: boolean) => {
 
 			setSong(_song, reset);
 
+			// Reset the youtube data one more time so it can properly reset
+			youtubeVideoCurrentTime.value = "0.000";
+			youtubeVideoDuration.value = "0.000";
+			youtubeVideoNote.value = "";
+
 			songDataLoaded.value = true;
 
 			if (_song._id) {