Browse Source

QueryContext tweak

David Sehnal 6 năm trước cách đây
mục cha
commit
2c68d341b4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/mol-model/structure/query/context.ts

+ 1 - 1
src/mol-model/structure/query/context.ts

@@ -30,7 +30,7 @@ export class QueryContext implements QueryContextView {
     currentStructure: Structure = void 0 as any;
 
     /** Current link between atoms */
-    readonly atomicLink: Link.Location<Unit.Atomic> = void 0 as any;
+    readonly atomicLink: Link.Location<Unit.Atomic> = Link.Location() as Link.Location<Unit.Atomic>;
 
     setElement(unit: Unit, e: ElementIndex) {
         this.element.unit = unit;