Skip to content

Commit 228f62e

Browse files
authored
avoid a crash on facet: exclude on a non-faceted mark (#1282)
1 parent 62e91e7 commit 228f62e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function plot(options = {}) {
100100
for (const mark of marks) {
101101
if (mark.facet === "exclude") {
102102
const facetState = facetStateByMark.get(mark);
103-
facetState.facetsIndex = facetExclude(facetState.facetsIndex);
103+
if (facetState !== undefined) facetState.facetsIndex = facetExclude(facetState.facetsIndex);
104104
}
105105
}
106106
}

0 commit comments

Comments
 (0)