ソースを参照

QueryContext tweak

David Sehnal 6 年 前
コミット
2c68d341b4
1 ファイル変更1 行追加1 行削除
  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;
     currentStructure: Structure = void 0 as any;
 
 
     /** Current link between atoms */
     /** 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) {
     setElement(unit: Unit, e: ElementIndex) {
         this.element.unit = unit;
         this.element.unit = unit;