Skip to content

Commit e8d618a

Browse files
authored
Merge pull request #1289 from grid-js/cell-data-type
fix: remove the TD data type warning
2 parents 3e613c6 + 570f132 commit e8d618a

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/view/table/td.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Row from '../../row';
77
import { JSXInternal } from 'preact/src/jsx';
88
import { PluginRenderer } from '../../plugin';
99
import { useConfig } from '../../hooks/useConfig';
10-
import log from '../../util/log';
1110

1211
export function TD(
1312
props: {
@@ -38,12 +37,6 @@ export function TD(
3837
);
3938
}
4039

41-
if (typeof props.cell.data === 'object') {
42-
log.warn(
43-
`The data field for cell ${props.cell.id} is not a primitive value. Did you mean to add a "formatter" function to this column?`,
44-
);
45-
}
46-
4740
return props.cell.data;
4841
};
4942

0 commit comments

Comments
 (0)