Skip to content

Commit cec0f76

Browse files
authored
Merge pull request #1533 from jay-hodgson/PORTALS-3398
PORTALS-3398: fix type issue
2 parents 9204855 + 63a250f commit cec0f76

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/portals/elportal/src/config/synapseConfigs/handleUpsetPlotClick.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import { ISetCombination, ISet, UpSetSelectionProps } from '@upsetjs/react'
1010
export const handleUpsetPlotClick: UpSetSelectionProps['onClick'] =
1111
selection => {
1212
// Gather all values (intersection from UpsetPlot), and create an additional filter for each value
13-
const clickedSets = (selection as ISetCombination)?.sets.values()
14-
const columnValues = clickedSets.map((v: ISet<any>) => v.name).toArray()
13+
const clickedSets = Array.from(
14+
(selection as ISetCombination)?.sets.values(),
15+
)
16+
const columnValues = clickedSets.map((v: ISet<any>) => v.name)
1517
const query: Query = {
1618
sql: cohortBuilderSql,
1719
additionalFilters: columnValues.map(value => {

0 commit comments

Comments
 (0)