浏览代码

Fixed undefined "pooled str" column

David Sehnal 7 年之前
父节点
当前提交
3c1086e760
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mol-base/collections/column.ts

+ 1 - 1
src/mol-base/collections/column.ts

@@ -35,7 +35,7 @@ export interface Column<T> {
 }
 
 export function UndefinedColumn<T extends ColumnType>(rowCount: number, type: T): Column<T['@type']> {
-    const value: Column<T['@type']>['value'] = type.kind === 'str' ? row => '' : row => 0;
+    const value: Column<T['@type']>['value'] = type.isString ? row => '' : row => 0;
     return {
         '@type': type,
         isDefined: false,