Skip to content

Commit 613da0d

Browse files
committed
fixes #640 -- don't match to blocks in the trash when looking for action names
1 parent fe22961 commit 613da0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/blocks.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,10 @@ function Blocks(canvas, stage, refreshCanvas, trashcan, updateStage, getStageSca
27932793
var currentActionNames = [];
27942794
var currentStoreinNames = [];
27952795
for (var b = 0; b < this.blockList.length; b++) {
2796+
if (this.blockList[b].trash) {
2797+
continue;
2798+
}
2799+
27962800
if (this.blockList[b].name === 'action') {
27972801
if (this.blockList[b].connections[1] != null) {
27982802
console.log(this.blockList[this.blockList[b].connections[1]].value);

0 commit comments

Comments
 (0)