From bb05e22f601309611d756607d9634d8a377c0f8f Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Wed, 11 Dec 2024 18:33:31 +0800 Subject: [PATCH] fix: add default --- src/external/bot-skeleton/utils/error-handling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/bot-skeleton/utils/error-handling.js b/src/external/bot-skeleton/utils/error-handling.js index e91e48d8..c566ca76 100644 --- a/src/external/bot-skeleton/utils/error-handling.js +++ b/src/external/bot-skeleton/utils/error-handling.js @@ -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: