Skip to content

Commit

Permalink
Fix: prevent calls on undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
salarhfz-fs committed Mar 10, 2022
1 parent 43a8ef8 commit fb39aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Blockly.Blocks.trade_definition_multiplier = {
return [option, option];
});

multiplier_list_dropdown.updateOptions(multiplier_options, {
multiplier_list_dropdown?.updateOptions(multiplier_options, {
default_value: should_use_default_value ? undefined : multiplier_list_dropdown.getValue(),
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bot-web-ui/src/stores/app-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default class AppStore {
const is_click_outside_blockly = !path.some(el => el.classList && el.classList.contains('injectionDiv'));

if (is_click_outside_blockly) {
Blockly.hideChaff(/* allowToolbox */ false);
Blockly?.hideChaff(/* allowToolbox */ false);
}
};

Expand Down

0 comments on commit fb39aa4

Please sign in to comment.