From 3bf72829c280e434d577718f8f6f9e5cba1048b6 Mon Sep 17 00:00:00 2001 From: Severiano Badajoz Date: Wed, 11 Mar 2020 13:01:14 -0700 Subject: [PATCH] pass empty coordinates when a continuous annotation is colored (#1212) --- client/src/util/centroid.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/util/centroid.js b/client/src/util/centroid.js index cc7e9d8d..77cbee66 100644 --- a/client/src/util/centroid.js +++ b/client/src/util/centroid.js @@ -37,6 +37,11 @@ const getCoordinatesByCategoricalValues = ( categoryName ]; + // If the coloredBy is not a categorical col + if (categoryValueIndices === undefined) { + return coordinates; + } + // Check to see if the current category is a user created annotation const isUserAnno = schemaObsByName[categoryName].writable;