Skip to content

Commit bc75bbd

Browse files
authored
Merge pull request ScratchAddons#1196 from GarboMuffin/1194
Fix ScratchAddons#1194
2 parents d080770 + 52f3464 commit bc75bbd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

addons/editor-devtools/userscript.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,7 @@ export default async function ({ addon, global, console, msg, safeMsg: m }) {
633633
* @returns {boolean}
634634
*/
635635
function isBlockAnOrphan(topBlock) {
636-
if (topBlock.getOutputShape() && !topBlock.getSurroundParent()) {
637-
return true;
638-
}
639-
return false;
636+
return !!topBlock.outputConnection;
640637
}
641638

642639
/**

0 commit comments

Comments
 (0)