Browse Source

take .isDefined into account in CifField.ofColumn

Alexander Rose 5 years ago
parent
commit
3f02cf0561
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mol-io/reader/cif/data-model.ts

+ 2 - 2
src/mol-io/reader/cif/data-model.ts

@@ -222,7 +222,7 @@ export namespace CifField {
     }
 
     export function ofColumn(column: Column<any>): CifField {
-        const { rowCount, valueKind, areValuesEqual } = column;
+        const { rowCount, valueKind, areValuesEqual, isDefined } = column;
 
         let str: CifField['str']
         let int: CifField['int']
@@ -253,7 +253,7 @@ export namespace CifField {
         return {
             __array: void 0,
             binaryEncoding: void 0,
-            isDefined: true,
+            isDefined,
             rowCount,
             str,
             int,