diff --git a/src/containers/sound-editor.jsx b/src/containers/sound-editor.jsx index 631aa65ebe2d1bd384eff41b63a08c83d85c1144..a3cdaaf674fee46aeddcaaac66fcfbf168deb58a 100644 --- a/src/containers/sound-editor.jsx +++ b/src/containers/sound-editor.jsx @@ -136,6 +136,12 @@ class SoundEditor extends React.Component { if (endIndex > startIndex) { // Strictly greater to prevent 0 sample sounds const clippedSamples = samples.slice(startIndex, endIndex); this.submitNewSamples(clippedSamples, sampleRate); + } else { + // Just clear the trim state, it cannot be completed + this.setState({ + trimStart: null, + trimEnd: null + }); } } }