Address crash by properly updating currentLayer and refreshing selection to force update instance state (#48373)

pull/48378/head
Nathan Marrs 3 years ago committed by GitHub
parent 6945f1c483
commit fb25cf11e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/canvas/runtime/scene.tsx

@ -91,6 +91,8 @@ export class Scene {
// If editing is enabled, clear selecto instance
const destroySelecto = enableEditing;
this.initMoveable(destroySelecto, enableEditing);
this.currentLayer = this.root;
this.selection.next([]);
}
}, 100);
return this.root;

Loading…
Cancel
Save