dsehnal hace 3 años
padre
commit
b230655439
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/mol-model/structure/structure/structure.ts

+ 2 - 2
src/mol-model/structure/structure/structure.ts

@@ -194,8 +194,8 @@ class Structure {
     }
 
     /** The parent or itself in case this is the root */
-    get root() {
-        return this.state.parent || this;
+    get root(): Structure {
+        return this.state.parent ?? this;
     }
 
     /** The root/top-most parent or `undefined` in case this is the root */