Skip to content

Commit 952f16f

Browse files
committed
don't match to blocks in the trash when looking for action names
1 parent 25fe66f commit 952f16f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)