Исправлено отображение данных в таблице "Заполнить режимы текущей скважины" и в таблице на странице "Режимы"

This commit is contained in:
ts_salikhov 2022-09-29 13:37:48 +04:00
parent e0f8583f99
commit c82fec8f60
2 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,7 @@ export const EditableTable = memo(({
const newData = [...data]
const index = newData.findIndex((item) => record.key === item.key)
const item = newData[index]
let newItem = { ...item, ...row }
const newItem = { ...item, ...row }
newData.splice(index, 1, newItem)

View File

@ -12,6 +12,7 @@ import { invokeWebApiWrapperAsync } from '@components/factory'
import { DrillParamsService, WellOperationService } from '@api'
import { arrayOrDefault } from '@utils'
export const getColumns = async (idWell) => {
let sectionTypes = await WellOperationService.getSectionTypes(idWell)
sectionTypes = Object.entries(sectionTypes).map(([id, value]) => ({