mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
fix: getBlocksByType not filtering out insertion markers (#5430)
* maxInstance fix * requested changes applied
This commit is contained in:
@@ -266,7 +266,10 @@ Blockly.Workspace.prototype.getBlocksByType = function(type, ordered) {
|
||||
}
|
||||
blocks.sort(this.sortObjects_);
|
||||
}
|
||||
return blocks;
|
||||
|
||||
return blocks.filter(function(block) {
|
||||
return !block.isInsertionMarker();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user