Merge pull request #2322 from apple502j/patch-8

Use correct name in changeBlock in renameVariable
This commit is contained in:
DD Liu 2020-03-17 11:49:18 -04:00 committed by GitHub
commit 8a39d23d1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -326,7 +326,7 @@ class Target extends EventEmitter {
blocks.changeBlock({ blocks.changeBlock({
id: id, id: id,
element: 'field', element: 'field',
name: 'VARIABLE', name: variable.type === 'list' ? 'LIST' : 'VARIABLE',
value: id value: id
}, this.runtime); }, this.runtime);
const monitorBlock = blocks.getBlock(variable.id); const monitorBlock = blocks.getBlock(variable.id);