Skip to content

Commit 25249f9

Browse files
committed
Go back to the code tab after restoring a deleted sprite as well
1 parent b12ea50 commit 25249f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/containers/target-pane.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ class TargetPane extends React.Component {
7373
this.props.vm.postSpriteInfo({y});
7474
}
7575
handleDeleteSprite (id) {
76-
const restoreFun = this.props.vm.deleteSprite(id);
76+
const restoreSprite = this.props.vm.deleteSprite(id);
77+
const restoreFun = () => restoreSprite().then(this.handleActivateBlocksTab);
78+
7779
this.props.dispatchUpdateRestore({
7880
restoreFun: restoreFun,
7981
deletedItem: 'Sprite'

0 commit comments

Comments
 (0)