Sfoglia il codice sorgente

fix(EditSong): playback rate was undefined by default

Kristian Vos 3 anni fa
parent
commit
5588e433ae
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      frontend/src/store/modules/modals/editSong.js

+ 2 - 1
frontend/src/store/modules/modals/editSong.js

@@ -136,8 +136,9 @@ export default {
 				state.video.playbackRate = rate;
 				state.video.player.setPlaybackRate(rate);
 			} else if (
+				state.video.player.getPlaybackRate() !== undefined &&
 				state.video.playbackRate !==
-				state.video.player.getPlaybackRate()
+					state.video.player.getPlaybackRate()
 			) {
 				state.video.player.setPlaybackRate(state.video.playbackRate);
 				state.video.playbackRate = state.video.player.getPlaybackRate();