Skip to content

Commit 497f8cb

Browse files
Fran McDadeFran McDade
authored andcommitted
fix: return null if no props (#468)
1 parent 6db76dd commit 497f8cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/components/Table/components/TableCell/components/LinkCell

src/components/Table/components/TableCell/components/LinkCell/linkCell.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const LinkCell = <
1414
getValue,
1515
}: BaseComponentProps & CellContext<T, TValue>): JSX.Element | null => {
1616
const props = getValue();
17+
if (!props) return null;
1718
const {
1819
children,
1920
className,

0 commit comments

Comments
 (0)