Skip to content

Commit

Permalink
fix: add default
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Dec 11, 2024
1 parent 6570873 commit bb05e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/external/bot-skeleton/utils/error-handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const handleError = (errorCode, observer) => {
switch (errorCode) {
case 'BLOCK_DELETION':
if (error_message_map?.()?.[window.Blockly.getSelected().type]) {
observer.emit('ui.log.error', error_message_map?.()?.[window.Blockly.getSelected().type]);
observer.emit('ui.log.error', error_message_map?.()?.[window.Blockly.getSelected().type]?.default);
}
break;
default:
Expand Down

0 comments on commit bb05e22

Please sign in to comment.