We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12ea50 commit 25249f9Copy full SHA for 25249f9
src/containers/target-pane.jsx
@@ -73,7 +73,9 @@ class TargetPane extends React.Component {
73
this.props.vm.postSpriteInfo({y});
74
}
75
handleDeleteSprite (id) {
76
- const restoreFun = this.props.vm.deleteSprite(id);
+ const restoreSprite = this.props.vm.deleteSprite(id);
77
+ const restoreFun = () => restoreSprite().then(this.handleActivateBlocksTab);
78
+
79
this.props.dispatchUpdateRestore({
80
restoreFun: restoreFun,
81
deletedItem: 'Sprite'
0 commit comments