fix value
This commit is contained in:
1 parent
4b1307bb11
commit
01db5da8ce
2 files changed
+2
-2
No files matched your search
@@ -298,7 +298,7 @@ class Blocks {
|
||||
if (!block.fields[args.name]) return;
|
||||
if (args.name === 'VARIABLE') {
|
||||
// Get variable name using the id in args.value.
|
||||
const variable = optRuntime.getEditingTarget().lookupVariableById(args.id);
|
||||
const variable = optRuntime.getEditingTarget().lookupVariableById(args.value);
|
||||
if (variable) {
|
||||
block.fields[args.name].value = variable.name;
|
||||
block.fields[args.name].id = args.value;
|
||||
|
||||
@@ -169,7 +169,7 @@ class Target extends EventEmitter {
|
||||
id: id,
|
||||
element: 'field',
|
||||
name: 'VARIABLE',
|
||||
value: newName
|
||||
value: id
|
||||
}, this.runtime);
|
||||
this.runtime.requestUpdateMonitor(Map({
|
||||
id: id,
|
||||
|
||||
Reference in new issue
Block a user