Skip to content
Snippets Groups Projects
Commit a5abdfea authored by Karishma Chadha's avatar Karishma Chadha
Browse files

Clear the workspace undo when the workspace updates.

parent 3b86377e
No related branches found
No related tags found
No related merge requests found
...@@ -310,6 +310,11 @@ class Blocks extends React.Component { ...@@ -310,6 +310,11 @@ class Blocks extends React.Component {
this.workspace.scale = scale; this.workspace.scale = scale;
this.workspace.resize(); this.workspace.resize();
} }
// Clear the undo state of the workspace since this is a
// fresh workspace and we don't want any changes made to another sprites
// workspace to be 'undone' here.
this.workspace.clearUndo();
} }
handleExtensionAdded (blocksInfo) { handleExtensionAdded (blocksInfo) {
// select JSON from each block info object then reject the pseudo-blocks which don't have JSON, like separators // select JSON from each block info object then reject the pseudo-blocks which don't have JSON, like separators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment