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

fix(subtitles): fix typo that was blowing away subtitles on update
This commit is contained in:
virtuacoplenny 2018-09-11 13:41:34 -07:00 committed by GitHub
commit 32fbcb17b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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