Skip to content

Commit

Permalink
fix: fix a crash when adding a broadcast message (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Aug 30, 2024
1 parent 40eee91 commit 8e165ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function createVariable(workspace, opt_callback, opt_type) {

var flyout = workspace.isFlyout ? workspace : workspace.getFlyout();
var variableBlockId = variable.getId();
workspace.getToolbox().runAfterRerender(() => {
workspace.getToolbox()?.runAfterRerender(() => {
flyout.setCheckboxState(variableBlockId, true);
});

Expand Down

0 comments on commit 8e165ce

Please # to comment.