Skip to content

Commit 8bee472

Browse files
authored
Revert "fix(table): When ellipsis is undefined, title is undefined" (#1176)
1 parent 386a1f5 commit 8bee472

File tree

7 files changed

+3146
-912
lines changed

7 files changed

+3146
-912
lines changed

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx --no-install lint-staged

src/Cell/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ const getTitleFromCellRenderChildren = ({
6161
children,
6262
}: Pick<CellProps<any>, 'ellipsis' | 'rowType' | 'children'>) => {
6363
let title: string;
64-
const ellipsisConfig: CellEllipsisType =
65-
ellipsis === true || ellipsis === undefined ? { showTitle: true } : ellipsis;
64+
const ellipsisConfig: CellEllipsisType = ellipsis === true ? { showTitle: true } : ellipsis;
6665
if (ellipsisConfig && (ellipsisConfig.showTitle || rowType === 'header')) {
6766
if (typeof children === 'string' || typeof children === 'number') {
6867
title = children.toString();

0 commit comments

Comments
 (0)