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 a3b260f commit 0a1544a
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 0a1544a

Please sign in to comment.