diff --git a/src/pages/Analytics/WellCompositeEditor/WellCompositeSections.jsx b/src/pages/Analytics/WellCompositeEditor/WellCompositeSections.jsx index d0a07ef..12d819b 100644 --- a/src/pages/Analytics/WellCompositeEditor/WellCompositeSections.jsx +++ b/src/pages/Analytics/WellCompositeEditor/WellCompositeSections.jsx @@ -20,7 +20,7 @@ import { import Tvd from '@pages/WellOperations/Tvd' import WellOperationsTable from '@pages/Cluster/WellOperationsTable' import NewParamsTable from './NewParamsTable' -import CompaniesTable from "@pages/Cluster/CompaniesTable"; +import CompaniesTable from '@pages/Cluster/CompaniesTable' const filtersMinMax = [ { text: 'min', value: 'min' }, diff --git a/src/pages/Cluster/ClusterWells.jsx b/src/pages/Cluster/ClusterWells.jsx index a824372..bdafb5e 100755 --- a/src/pages/Cluster/ClusterWells.jsx +++ b/src/pages/Cluster/ClusterWells.jsx @@ -27,7 +27,7 @@ import { import Tvd from '@pages/WellOperations/Tvd' import WellOperationsTable from './WellOperationsTable' -import CompaniesTable from "@pages/Cluster/CompaniesTable"; +import CompaniesTable from '@pages/Cluster/CompaniesTable' const filtersMinMax = [ { text: 'min', value: 'min' }, diff --git a/src/pages/Cluster/CompaniesTable.jsx b/src/pages/Cluster/CompaniesTable.jsx index 1d24e13..bc27a1f 100644 --- a/src/pages/Cluster/CompaniesTable.jsx +++ b/src/pages/Cluster/CompaniesTable.jsx @@ -1,8 +1,7 @@ import React, { memo, useMemo } from 'react' -import { Table } from 'antd' import { BankOutlined } from '@ant-design/icons' -import { makeTextColumn } from '@components/Table' +import { makeTextColumn, Table } from '@components/Table' const columns = [ makeTextColumn('', 'logo'), @@ -13,10 +12,10 @@ const columns = [ const CompaniesTable = memo(({companies}) => { const dataCompanies = useMemo(() => companies?.map((company) => ({ key: company.id, - logo: , + logo: companies?.logo ? : , caption: company.caption, companyTypeCaption: company.companyTypeCaption, - })), [companies]); + })), [companies]) return ( { pagination={{ defaultPageSize: 10 }} tableName={'well_operations'} /> - ); -}); + ) +}) -export default CompaniesTable; \ No newline at end of file +export default CompaniesTable \ No newline at end of file