Во избежание ошибок поле value возвращено в WellTreeSelector

This commit is contained in:
Александр Сироткин 2022-01-12 20:48:51 +05:00
parent fc607d883f
commit d51a669937

View File

@ -68,14 +68,17 @@ export const WellTreeSelector = () => {
const wellsTree: TreeNodeData[] = deposits.map(deposit =>({
title: deposit.caption,
key: `/deposit/${deposit.id}`,
value: `/deposit/${deposit.id}`,
icon: <DepositIcon width={24} height={24}/>,
children: deposit.clusters?.map(cluster => ({
title: cluster.caption,
key: `/cluster/${cluster.id}`,
value: `/cluster/${cluster.id}`,
icon: <ClusterIcon width={24} height={24}/>,
children: cluster.wells?.map(well => ({
title: well.caption,
key: `/well/${well.id}`,
value: `/well/${well.id}`,
icon: <WellIcon
width={24}
height={24}