Skip to content

Commit 2dfa2c8

Browse files
authored
unnecessary check
1 parent 1c1d887 commit 2dfa2c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/containers/blocks.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,15 +738,11 @@ class Blocks extends React.Component {
738738
}
739739
handleFieldBoxChange (args) {
740740
// update checkbox states with menu-dependent blocks
741-
const editingTarget = this.props.vm.editingTarget;
742-
if (!editingTarget || args.element !== 'field') return;
741+
if (args.element !== 'field') return;
743742

744743
const flyout = this.workspace.getFlyout();
745744
if (!flyout) return;
746745

747-
let block = editingTarget.blocks._blocks[args.id];
748-
if (typeof block === 'undefined') return;
749-
750746
// check if monitoring
751747
const monitorState = this.props.vm.runtime.getMonitorState();
752748
const shouldCheck = (

0 commit comments

Comments
 (0)