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

Fix if no editing target

parent 2389c093
Branches
Tags
No related merge requests found
......@@ -57,12 +57,12 @@ class SoundTab extends React.Component {
onNewSoundFromRecordingClick
} = this.props;
const sprite = vm.editingTarget.sprite;
if (!sprite) {
if (!vm.editingTarget) {
return null;
}
const sprite = vm.editingTarget.sprite;
const sounds = sprite.sounds ? sprite.sounds.map(sound => (
{
url: soundIcon,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment