Merge pull request #1045 from kchadha/broadcast-message-shadow-fix

Fix import of broadcast block empty string obscured shadow import
This commit is contained in:
kchadha 2018-04-11 18:13:20 -04:00 committed by GitHub
commit 7311b103fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -643,7 +643,6 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
// event_broadcast_menus have some extra properties to add to the
// field and a different value than the rest
if (expectedArg.inputOp === 'event_broadcast_menu') {
if (!shadowObscured) {
// Need to update the broadcast message name map with
// the value of this field.
// Also need to provide the fields[fieldName] object,
@ -654,7 +653,6 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
// and come up with a fresh messageN.
const broadcastId = addBroadcastMsg(fieldValue, fields[fieldName]);
fields[fieldName].id = broadcastId;
}
fields[fieldName].variableType = expectedArg.variableType;
}
activeBlock.children.push({