Skip to content
Snippets Groups Projects
Unverified Commit 77e54a80 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #1018 from paulkaplan/fix-sound-explosion

Check for the selected sound before rendering the editor
parents e5b9b25c 6204e075
No related branches found
No related tags found
No related merge requests found
......@@ -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 ? (
......
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