Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 007b33c

Browse files
committed
re-add optional chaining
1 parent cead872 commit 007b33c

File tree

1 file changed

+1
-1
lines changed
  • superset-frontend/packages/superset-ui-core/src/components/TableCollection

1 file changed

+1
-1
lines changed

superset-frontend/packages/superset-ui-core/src/components/TableCollection/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function mapColumns<T extends object>(
9292
const { isSorted, isSortedDesc } = getSortingInfo(headerGroups, column.id);
9393
return {
9494
title: column.Header,
95-
dataIndex: column.id.includes('.') ? column.id.split('.') : column.id,
95+
dataIndex: column.id?.includes('.') ? column.id.split('.') : column.id,
9696
hidden: column.hidden,
9797
key: column.id,
9898
width: column.size ? COLUMN_SIZE_MAP[column.size] : undefined,

0 commit comments

Comments
 (0)