Skip to content

Commit

Permalink
✨ only filter out duplicated y dimensions from explorers before loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Sep 10, 2024
1 parent eadbdf6 commit 03f4f77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion explorer/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,11 @@ export class Explorer
// Filter out variableIds that are already present in the dimensions array
.filter(
(yVariableId) =>
!dimensions.some((d) => d.variableId === yVariableId)
!dimensions.some(
(d) =>
d.property === DimensionProperty.y &&
d.variableId === yVariableId
)
)
.map((yVariableId) => ({
variableId: yVariableId,
Expand Down

0 comments on commit 03f4f77

Please sign in to comment.