fix: add the monitor block extension to extension monitor blocks ()

This commit is contained in:
Aaron Dodson 2024-09-03 13:33:20 -07:00 committed by GitHub
parent 2baf2c91b6
commit 4837dd8e8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1293,7 +1293,10 @@ class Runtime extends EventEmitter {
if (blockInfo.blockType === BlockType.REPORTER) {
if (!blockInfo.disableMonitor && context.inputList.length === 0) {
blockJSON.checkboxInFlyout = true;
if (!blockJSON.extensions) {
blockJSON.extensions = [];
}
blockJSON.extensions.push("monitor_block");
}
} else if (blockInfo.blockType === BlockType.LOOP) {
// Add icon to the bottom right of a loop block