ソースを参照

Merge pull request #3442 from virtuacoplenny/lenny/subtitles-blown-away

fix(subtitles): fix typo that was blowing away subtitles on update
master
virtuacoplenny 7年前
コミット
32fbcb17b9
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      react/features/subtitles/reducer.js

+ 2
- 2
react/features/subtitles/reducer.js ファイルの表示

@@ -45,7 +45,7 @@ ReducerRegistry.register('features/subtitles', (
45 45
  * reduction of the specified action.
46 46
  */
47 47
 function _removeTranscriptMessage(state, { transcriptMessageID }) {
48
-    const newTranscriptMessages = new Map(state.transcriptMessages);
48
+    const newTranscriptMessages = new Map(state._transcriptMessages);
49 49
 
50 50
     // Deletes the key from Map once a final message arrives.
51 51
     newTranscriptMessages.delete(transcriptMessageID);
@@ -67,7 +67,7 @@ function _removeTranscriptMessage(state, { transcriptMessageID }) {
67 67
  */
68 68
 function _updateTranscriptMessage(state,
69 69
         { transcriptMessageID, newTranscriptMessage }) {
70
-    const newTranscriptMessages = new Map(state.transcriptMessages);
70
+    const newTranscriptMessages = new Map(state._transcriptMessages);
71 71
 
72 72
     // Updates the new message for the given key in the Map.
73 73
     newTranscriptMessages.set(transcriptMessageID, newTranscriptMessage);

読み込み中…
キャンセル
保存