Merge pull request #4298 from chrisgarrity/issue/null-flyout

check for non-null flyout
This commit is contained in:
chrisgarrity authored and GitHub committed 2019-01-10 13:59:14 -05:00
commit 5330a07045
1 file changed
+1 -1
+1 -1
View File
@@ -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());