Skip to content

Commit 642a521

Browse files
authored
blocks.jsx -- fixed migration code
1 parent 3951f2c commit 642a521

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/containers/blocks.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,13 +745,14 @@ class Blocks extends React.Component {
745745

746746
// check if monitoring
747747
const monitorState = this.props.vm.runtime.getMonitorState();
748-
const value = String(args.value);
748+
const id = args.blockId;
749+
const value = String(args.newValue);
749750
const shouldCheck = (
750-
monitorState.get(`${args.id}_${value}`) !== undefined ||
751-
monitorState.get(`${args.id}_${value.toLowerCase()}`) !== undefined
751+
monitorState.get(`${id}_${value}`) !== undefined ||
752+
monitorState.get(`${id}_${value.toLowerCase()}`) !== undefined
752753
);
753754

754-
const checkbox = flyout.checkboxes_[args.id];
755+
const checkbox = flyout.checkboxes_[id];
755756
if (checkbox) {
756757
checkbox.clicked = shouldCheck;
757758
if (shouldCheck) {

0 commit comments

Comments
 (0)