forked from ddrilling/asb_cloud_front
Во избежание ошибок поле value возвращено в WellTreeSelector
This commit is contained in:
parent
fc607d883f
commit
d51a669937
@ -68,14 +68,17 @@ export const WellTreeSelector = () => {
|
|||||||
const wellsTree: TreeNodeData[] = deposits.map(deposit =>({
|
const wellsTree: TreeNodeData[] = deposits.map(deposit =>({
|
||||||
title: deposit.caption,
|
title: deposit.caption,
|
||||||
key: `/deposit/${deposit.id}`,
|
key: `/deposit/${deposit.id}`,
|
||||||
|
value: `/deposit/${deposit.id}`,
|
||||||
icon: <DepositIcon width={24} height={24}/>,
|
icon: <DepositIcon width={24} height={24}/>,
|
||||||
children: deposit.clusters?.map(cluster => ({
|
children: deposit.clusters?.map(cluster => ({
|
||||||
title: cluster.caption,
|
title: cluster.caption,
|
||||||
key: `/cluster/${cluster.id}`,
|
key: `/cluster/${cluster.id}`,
|
||||||
|
value: `/cluster/${cluster.id}`,
|
||||||
icon: <ClusterIcon width={24} height={24}/>,
|
icon: <ClusterIcon width={24} height={24}/>,
|
||||||
children: cluster.wells?.map(well => ({
|
children: cluster.wells?.map(well => ({
|
||||||
title: well.caption,
|
title: well.caption,
|
||||||
key: `/well/${well.id}`,
|
key: `/well/${well.id}`,
|
||||||
|
value: `/well/${well.id}`,
|
||||||
icon: <WellIcon
|
icon: <WellIcon
|
||||||
width={24}
|
width={24}
|
||||||
height={24}
|
height={24}
|
||||||
|
Loading…
Reference in New Issue
Block a user