diff --git a/src/containers/sound-tab.jsx b/src/containers/sound-tab.jsx index 6143175ddace4a3755d81c743bc8c81192cd23ad..d61bea13147db30196964f33b1066df3e7ac39cf 100644 --- a/src/containers/sound-tab.jsx +++ b/src/containers/sound-tab.jsx @@ -104,7 +104,7 @@ class SoundTab extends React.Component { onDeleteClick={this.handleDeleteSound} onItemClick={this.handleSelectSound} > - {sprite.sounds && sprite.sounds.length > 0 ? ( + {sprite.sounds && sprite.sounds[this.state.selectedSoundIndex] ? ( <SoundEditor soundIndex={this.state.selectedSoundIndex} /> ) : null} {this.props.soundRecorderVisible ? (