Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
carolhmj committed Apr 1, 2022
1 parent 1d6ce54 commit df5050c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tools/guiEditor/src/diagram/workbench.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
this.props.globalState.draggedControlDirection === DragOverLocation.CENTER
) {
draggedControlParent.removeControl(draggedControl);
const liveGui = this.props.globalState.liveGuiTexture
const liveGui = this.props.globalState.liveGuiTexture;
if (liveGui) {
if (liveGui.rootContainer.children.indexOf(draggedControl) !== -1) {
liveGui.rootContainer.removeControl(draggedControl);
Expand Down

0 comments on commit df5050c

Please sign in to comment.