Skip to content
Snippets Groups Projects
Commit 213ef4ba authored by chrisgarrity's avatar chrisgarrity
Browse files

check for non-null flyout

parent 123b0a68
Branches
Tags
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment