We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117b7e8 commit 9e74f6fCopy full SHA for 9e74f6f
js/blocks.js
@@ -2132,8 +2132,14 @@ class Blocks {
2132
feedbackBlockObj.highlight();
2133
this.activity.refreshCanvas();
2134
setTimeout(() => {
2135
- feedbackBlockObj.unhighlight();
2136
- this.activity.refreshCanvas();
+ // Guard against rare deletion edge cases
+ if (
2137
+ this.blockList[newBlock] === feedbackBlockObj &&
2138
+ !feedbackBlockObj.trash
2139
+ ) {
2140
+ feedbackBlockObj.unhighlight();
2141
+ this.activity.refreshCanvas();
2142
+ }
2143
}, 220);
2144
}
2145
});
0 commit comments