浏览代码

fix: opening EditSong for a youtubeVideo wouldn't load the player at first

Kristian Vos 2 年之前
父节点
当前提交
24da46e806
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/src/components/modals/EditSong/index.vue

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

@@ -1219,7 +1219,7 @@ export default {
 
 								this.playerReady = true;
 
-								if (this.song && this.song._id)
+								if (this.song && this.song.youtubeId)
 									this.video.player.cueVideoById(
 										this.song.youtubeId,
 										this.song.skipDuration