Skip to content

Commit

Permalink
trying to fix problem with props.text
Browse files Browse the repository at this point in the history
  • Loading branch information
zavarin-michael committed Jun 24, 2024
1 parent cd9534b commit 8464557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/schools/domains/common/components/table/forming.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ColumnType } from 'antd/lib/table/interface'
import React from 'react'
import React, { ReactElement } from 'react'
import styles from './styles/styles.module.scss'
import { getSearchText } from '@domains/common/utils/searchText'
import {
Expand Down Expand Up @@ -53,7 +53,7 @@ export function useGenerateFullColumns<RowType>(
const obj = (record as any)[column.dataIndex]

if (!isReactElement(obj)) return obj === value
return obj.props.text === value
return (obj as ReactElement).props.text === value
},
}
}
Expand Down

0 comments on commit 8464557

Please sign in to comment.