Skip to content

Commit 9c2ccbf

Browse files
authored
fix(ui): on Table component crashing when looking for className on admin (#7776)
1 parent 3ee0e84 commit 9c2ccbf

File tree

1 file changed

+1
-1
lines changed
  • packages/ui/src/elements/Table/DefaultCell

1 file changed

+1
-1
lines changed

packages/ui/src/elements/Table/DefaultCell/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const DefaultCell: React.FC<CellComponentProps> = (props) => {
4343
onClick: onClickFromContext,
4444
} = cellProps || {}
4545

46-
const classNameFromConfigContext = 'className' in admin ? admin.className : undefined
46+
const classNameFromConfigContext = admin && 'className' in admin ? admin.className : undefined
4747

4848
const className =
4949
classNameFromProps ||

0 commit comments

Comments
 (0)