Revert "feat!: allow blocks to receive their own delete events" (#6676)

This commit is contained in:
Beka Westberg
2022-12-01 14:55:31 -08:00
committed by GitHub
parent 089841c26f
commit 67275e4bba
5 changed files with 8 additions and 66 deletions

View File

@@ -979,7 +979,7 @@ const PROCEDURE_CALL_COMMON = {
Xml.domToWorkspace(xml, this.workspace);
Events.setGroup(false);
}
} else if (event.type === Events.BLOCK_DELETE && event.blockId != this.id) {
} else if (event.type === Events.BLOCK_DELETE) {
// Look for the case where a procedure definition has been deleted,
// leaving this block (a procedure call) orphaned. In this case, delete
// the orphan.