From a44da11f3ff9ab4b9fcf7c3b5aba065207d1837e Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Wed, 22 Jul 2020 12:14:31 -0700 Subject: [PATCH] correctly handle non-string categoricals (#1660) --- client/src/annoMatrix/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/annoMatrix/schema.js b/client/src/annoMatrix/schema.js index 9ce03765..1c66febe 100644 --- a/client/src/annoMatrix/schema.js +++ b/client/src/annoMatrix/schema.js @@ -68,7 +68,7 @@ export function _normalizeCategoricalSchema(colSchema, col) { const { type, writable } = colSchema; if (type === "string" || type === "boolean" || type === "categorical") { const categorySet = new Set( - col.summarize().categories.concat(colSchema.categories ?? []) + col.summarizeCategorical().categories.concat(colSchema.categories ?? []) ); if (writable && !categorySet.has(unassignedCategoryLabel)) { categorySet.add(unassignedCategoryLabel);