瀏覽代碼

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;
 
     /** 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;