Удалены лишние использования на странице оценки по цб

This commit is contained in:
Александр Сироткин 2022-03-13 22:14:15 +05:00
parent afed418b56
commit 929fc50b35
2 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,7 @@ export const WellSelector = memo(({ idWell, value, onChange, treeData, treeLabel
null,
'Не удалось загрузить список скважин',
'Получение списка скважин'
), [idWell, treeData])
), [idWell, treeData, treeLabels])
return (
<TreeSelect

View File

@ -2,7 +2,7 @@ import { Table as RawTable, Typography } from 'antd'
import { Fragment, memo, useCallback, useEffect, useState } from 'react'
import LoaderPortal from '@components/LoaderPortal'
import { getTreeData, getTreeLabels, WellSelector } from '@components/WellSelector'
import { WellSelector } from '@components/WellSelector'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { makeGroupColumn, makeNumericColumn, makeNumericRender, makeTextColumn, Table } from '@components/Table'
import { OperationStatService, WellOperationService } from '@api'
@ -64,7 +64,6 @@ export const Statistics = memo(({ idWell }) => {
const [isPageLoading, setIsPageLoading] = useState(false)
const [avgWells, setAvgWells] = useState([])
const [cmpWells, setCmpWells] = useState([])
const [filteredCmpWells, setFilteredCmpWells] = useState([])
const [avgData, setAvgData] = useState([])
const [cmpData, setCmpData] = useState([])
const [avgRow, setAvgRow] = useState({})