Skip to content
Snippets Groups Projects
Commit 6204e075 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Check for the selected sound before rendering the editor

parent a9ec9fe8
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ class SoundTab extends React.Component { ...@@ -104,7 +104,7 @@ class SoundTab extends React.Component {
onDeleteClick={this.handleDeleteSound} onDeleteClick={this.handleDeleteSound}
onItemClick={this.handleSelectSound} onItemClick={this.handleSelectSound}
> >
{sprite.sounds && sprite.sounds.length > 0 ? ( {sprite.sounds && sprite.sounds[this.state.selectedSoundIndex] ? (
<SoundEditor soundIndex={this.state.selectedSoundIndex} /> <SoundEditor soundIndex={this.state.selectedSoundIndex} />
) : null} ) : null}
{this.props.soundRecorderVisible ? ( {this.props.soundRecorderVisible ? (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment