Merge pull request #4298 from chrisgarrity/issue/null-flyout
check for non-null flyout
This commit is contained in:
1 file changed
+1
-1
@@ -259,7 +259,7 @@ class Blocks extends React.Component {
|
||||
}
|
||||
|
||||
onTargetsUpdate () {
|
||||
if (this.props.vm.editingTarget) {
|
||||
if (this.props.vm.editingTarget && this.workspace.getFlyout()) {
|
||||
['glide', 'move', 'set'].forEach(prefix => {
|
||||
this.updateToolboxBlockValue(`${prefix}x`, Math.round(this.props.vm.editingTarget.x).toString());
|
||||
this.updateToolboxBlockValue(`${prefix}y`, Math.round(this.props.vm.editingTarget.y).toString());
|
||||
|
||||
Reference in new issue
Block a user