From a824bddbc45026c62dffcf9a057e17b61115a82a Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Thu, 23 Dec 2021 15:23:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=B0=20=D0=B7=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20WellTreeSelecto?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/WellTreeSelector.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/WellTreeSelector.tsx b/src/components/WellTreeSelector.tsx index 7111b8c..b8ceb00 100644 --- a/src/components/WellTreeSelector.tsx +++ b/src/components/WellTreeSelector.tsx @@ -33,7 +33,7 @@ const getLabel = (wellsTree: any[], value?: string): string | undefined => { switch (type) { case 'cluster': deposit = wellsTree.find((deposit) => ( - cluster = deposit.children?.find((cluster: any) => cluster.value === value) + cluster = deposit.children?.find((cluster: any) => cluster.key === value) )) if (deposit && cluster) return `${deposit.title} / ${cluster.title}` @@ -41,7 +41,7 @@ const getLabel = (wellsTree: any[], value?: string): string | undefined => { case 'well': deposit = wellsTree.find((deposit) => ( cluster = deposit.children?.find((cluster: any) => ( - well = cluster.children?.find((well: any) => well.value === value) + well = cluster.children?.find((well: any) => well.key === value) )) )) if (deposit && cluster && well)