Skip to content

Commit 8e165ce

Browse files
authored
fix: fix a crash when adding a broadcast message (#150)
1 parent 40eee91 commit 8e165ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/variables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function createVariable(workspace, opt_callback, opt_type) {
117117

118118
var flyout = workspace.isFlyout ? workspace : workspace.getFlyout();
119119
var variableBlockId = variable.getId();
120-
workspace.getToolbox().runAfterRerender(() => {
120+
workspace.getToolbox()?.runAfterRerender(() => {
121121
flyout.setCheckboxState(variableBlockId, true);
122122
});
123123

0 commit comments

Comments
 (0)