Skip to content

Commit

Permalink
fix: patch the getCheckboxState method in the new flyout (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Apr 26, 2024
1 parent a7b1a10 commit dd98dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default function (vm, useCatBlocks) {
this.jsonInit(json);
};

ScratchBlocks.VerticalFlyout.getCheckboxState = function (blockId) {
ScratchBlocks.CheckableContinuousFlyout.prototype.getCheckboxState = function (blockId) {
const monitoredBlock = vm.runtime.monitorBlocks._blocks[blockId];
return monitoredBlock ? monitoredBlock.isMonitored : false;
};
Expand Down

0 comments on commit dd98dd8

Please # to comment.