From 2cf8eb87dcb029ba152b63b01ee7e4df431d1bb6 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 28 Mar 2022 15:56:30 -0700 Subject: [PATCH] fix: Fix bug where workspace comments could not be created. (#6024) --- core/contextmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/contextmenu.js b/core/contextmenu.js index 907f24389..b2fa7c265 100644 --- a/core/contextmenu.js +++ b/core/contextmenu.js @@ -342,7 +342,7 @@ exports.commentDuplicateOption = commentDuplicateOption; * @alias Blockly.ContextMenu.workspaceCommentOption */ const workspaceCommentOption = function(ws, e) { - const WorkspaceCommentSvg = goog.module.get('Blockly.WorkspaceCommentSvg'); + const {WorkspaceCommentSvg} = goog.module.get('Blockly.WorkspaceCommentSvg'); if (!WorkspaceCommentSvg) { throw Error('Missing require for Blockly.WorkspaceCommentSvg'); }