Skip to content

Commit a487b5b

Browse files
committed
covis filter bugfix
1 parent cd98914 commit a487b5b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

vis/js/utils/data.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ const getParamFilterFunction = (param, field) => {
7474
return () => true;
7575
}
7676

77-
return (d) => d[field] === param;
77+
return (d) => {
78+
if (Array.isArray(d[field])) {
79+
return d[field].includes(param);
80+
}
81+
82+
return d[field] === param;
83+
};
7884
};
7985

8086
/**

0 commit comments

Comments
 (0)