Browse Source

fix: EditSong fixes

Kristian Vos 2 years ago
parent
commit
15349c909a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frontend/src/components/modals/EditSong/index.vue

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

@@ -1200,8 +1200,8 @@ watch(
 );
 watch(youtubeId, (_youtubeId, _oldYoutubeId) => {
 	console.log("NEW YOUTUBE ID", _youtubeId);
-	unloadSong(_oldYoutubeId);
-	loadSong(_youtubeId);
+	if (_oldYoutubeId) unloadSong(_oldYoutubeId);
+	if (_youtubeId) loadSong(_youtubeId);
 });
 
 onMounted(async () => {