We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 562af28 commit 661533eCopy full SHA for 661533e
1 file changed
src/containers/blocks.jsx
@@ -151,7 +151,11 @@ class Blocks extends React.Component {
151
if (
152
event.type === this.ScratchBlocks.Events.VAR_CREATE ||
153
event.type === this.ScratchBlocks.Events.VAR_RENAME ||
154
- event.type === this.ScratchBlocks.Events.VAR_DELETE
+ event.type === this.ScratchBlocks.Events.VAR_DELETE ||
155
+ (event.type === this.ScratchBlocks.Events.BLOCK_DELETE &&
156
+ event.oldJson.type === "procedures_definition") ||
157
+ (event.type === this.ScratchBlocks.Events.BLOCK_CREATE &&
158
+ event.json.type === "procedures_definition")
159
) {
160
this.requestToolboxUpdate();
161
}
0 commit comments