Commit b86971d1 authored by Mohammad Nakhaee's avatar Mohammad Nakhaee
Browse files

Check the key of the shown column

instead of checking the whole object
parent aef150fb
......@@ -636,7 +636,7 @@ export const Datatable = React.memo(function Datatable(props) {
)
const withSelectionFeature = !!contextProps.selected
const shownColumnsObjects = useMemo(() => (
columns.filter(column => shownColumns.includes(column))
columns.filter(column => shownColumns.map(shownColumn => shownColumn.key).includes(column.key))
), [columns, shownColumns])
const context = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment