forked from ddrilling/asb_cloud_front
CF2-55: Fixed row selection (prevented selection of several rows at a time)
This commit is contained in:
parent
ac987546b3
commit
ed4fe093e0
@ -123,13 +123,12 @@ export default function ClusterSections({clusterData}) {
|
||||
|
||||
useEffect(() => {
|
||||
let resArr = []
|
||||
|
||||
let i = 1;
|
||||
clusterData.statsWells?.forEach(el => {
|
||||
|
||||
el.sections.forEach(section => {
|
||||
let row = {
|
||||
key: el.id,
|
||||
id: el.id,
|
||||
key: section.id + i++,
|
||||
id: section.id + i++,
|
||||
caption: el.caption,
|
||||
sectionType: section.caption,
|
||||
sectionWellDepthPlan: section.plan.wellDepthEnd,
|
||||
@ -179,7 +178,6 @@ export default function ClusterSections({clusterData}) {
|
||||
scroll={{ x: true, y: 620}}
|
||||
rowSelection={rowSelection}
|
||||
pagination={false}
|
||||
className={'mt-20px'}
|
||||
/>
|
||||
<Divider/>
|
||||
<Badge.Ribbon text="комбинированная скважина" color="gray">
|
||||
|
@ -108,7 +108,6 @@ export default function ClusterWells({clusterData}) {
|
||||
bordered
|
||||
pagination={false}
|
||||
rowKey={(record) => record.id}
|
||||
className={'mt-20px'}
|
||||
/>
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue
Block a user