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 =>({
|
||||
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}
|
||||
|
Loading…
Reference in New Issue
Block a user