Ver Fonte

Fixed undefined "pooled str" column

David Sehnal há 7 anos atrás
pai
commit
3c1086e760
1 ficheiros alterados com 1 adições e 1 exclusões
  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,