From 44ce6df59ecedbfe8b9f22aaedc32668d0253275 Mon Sep 17 00:00:00 2001 From: DD Date: Fri, 23 Feb 2018 16:49:29 -0500 Subject: [PATCH] Fix tests on node 6 --- src/containers/sound-editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/sound-editor.jsx b/src/containers/sound-editor.jsx index 001224d56..bbe032c0b 100644 --- a/src/containers/sound-editor.jsx +++ b/src/containers/sound-editor.jsx @@ -92,7 +92,7 @@ class SoundEditor extends React.Component { this.props.onUpdateSoundBuffer( this.props.soundIndex, this.audioBufferPlayer.buffer, - (new Uint8Array(wavBuffer))); + wavBuffer ? new Uint8Array(wavBuffer) : new Uint8Array()); } handlePlay () { this.audioBufferPlayer.play(