Skip to content

Commit e25730f

Browse files
authored
fix(ui): list view crash when using a code field type (#7994)
1 parent 7f6b0f0 commit e25730f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface CodeCellProps extends DefaultCellComponentProps<string, CodeFie
1010
}
1111

1212
export const CodeCell: React.FC<CodeCellProps> = ({ cellData, nowrap }) => {
13-
const textToShow = cellData.length > 100 ? `${cellData.substring(0, 100)}\u2026` : cellData
13+
const textToShow = cellData?.length > 100 ? `${cellData.substring(0, 100)}\u2026` : cellData
1414

1515
const noWrapStyle: React.CSSProperties = nowrap ? { whiteSpace: 'nowrap' } : {}
1616

0 commit comments

Comments
 (0)