From 8262e426f949579852a4e48b0f0ca4b93de6153e Mon Sep 17 00:00:00 2001 From: Marshall Peterson Date: Thu, 26 Sep 2024 15:18:00 -0600 Subject: [PATCH] fix: revert change --- src/specBuilder/specUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/specBuilder/specUtils.ts b/src/specBuilder/specUtils.ts index 654f4e3aa..7b0a5b15c 100644 --- a/src/specBuilder/specUtils.ts +++ b/src/specBuilder/specUtils.ts @@ -59,13 +59,13 @@ export const getFacetsFromProps = ({ // filter out the ones that use static values instead of fields let facets = [color, lineType, opacity, size] .map((facet) => (Array.isArray(facet) ? facet[0] : facet)) - .filter((facet) => typeof facet === 'string'); + .filter((facet) => typeof facet === 'string') as string[]; // remove duplicates facets = [...new Set(facets)]; let secondaryFacets = [color, lineType, opacity] .map((facet) => (Array.isArray(facet) ? facet[1] : undefined)) - .filter((facet) => typeof facet === 'string'); + .filter((facet) => typeof facet === 'string') as string[]; // remove duplicates secondaryFacets = [...new Set(secondaryFacets)];