Исправлено отображение конструкции секций на новом режиме скважины

This commit is contained in:
goodmice 2022-07-19 09:33:09 +05:00
parent d415dbedc2
commit 600c752675
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export const makeSelectColumn = <T extends unknown = string>(
...other,
input: <Select options={options} {...selectOther}/>,
render: (value) => {
const item = options?.find(option => option?.value === value)
const item = options?.find(option => String(option?.value) === String(value))
return other?.render?.(item?.value) ?? item?.label ?? defaultValue ?? value ?? '--'
}
})

View File

@ -1,5 +1,5 @@
import { memo, useCallback, useEffect, useState } from 'react'
import { Button, Modal, Popconfirm, Tooltip } from 'antd'
import { Button, Modal, Popconfirm } from 'antd'
import { useIdWell } from '@asb/context'
import { Table } from '@components/Table'