Przeglądaj źródła

fix(subtitles): fix typo that was blowing away subtitles on update

j8
Leonard Kim 7 lat temu
rodzic
commit
282e66b2dc
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      react/features/subtitles/reducer.js

+ 2
- 2
react/features/subtitles/reducer.js Wyświetl plik

@@ -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);

Ładowanie…
Anuluj
Zapisz