From 0a1544a3572d5dfadd4ff258c9b3d253cc171791 Mon Sep 17 00:00:00 2001 From: Ike Saunders Date: Tue, 10 Sep 2024 09:12:00 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20only=20filter=20out=20duplicated=20?= =?UTF-8?q?y=20dimensions=20from=20explorers=20before=20loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- explorer/Explorer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/explorer/Explorer.tsx b/explorer/Explorer.tsx index 95e0b226f9f..ade08649379 100644 --- a/explorer/Explorer.tsx +++ b/explorer/Explorer.tsx @@ -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,