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

Go back to the code tab after restoring a deleted sprite as well

parent b12ea50c
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,9 @@ class TargetPane extends React.Component {
this.props.vm.postSpriteInfo({y});
}
handleDeleteSprite (id) {
const restoreFun = this.props.vm.deleteSprite(id);
const restoreSprite = this.props.vm.deleteSprite(id);
const restoreFun = () => restoreSprite().then(this.handleActivateBlocksTab);
this.props.dispatchUpdateRestore({
restoreFun: restoreFun,
deletedItem: 'Sprite'
......
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