fix gallery

This commit is contained in:
Mario Pesch
2023-02-10 12:04:10 +01:00
parent ace2237529
commit 98f97d6313
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export const onChangeCode = () => (dispatch, getState) => {
code.arduino = Blockly.Arduino.workspaceToCode(workspace);
var xmlDom = Blockly.Xml.workspaceToDom(workspace);
code.xml = Blockly.Xml.domToPrettyText(xmlDom);
var selectedBlock = Blockly.selected
var selectedBlock = Blockly.getSelected
if (selectedBlock !== null) {
code.helpurl = selectedBlock.helpUrl
code.tooltip = selectedBlock.tooltip