diff --git a/src/table/__tests__/body-cell.test.tsx b/src/table/__tests__/body-cell.test.tsx
index 9045f825d6..574e417896 100644
--- a/src/table/__tests__/body-cell.test.tsx
+++ b/src/table/__tests__/body-cell.test.tsx
@@ -169,6 +169,15 @@ describe('TableBodyCell', () => {
expect(stickyCellRef).toHaveBeenCalledWith(null);
});
+ it('should not throw an error if column is not editable', () => {
+ const col: typeof column = {
+ id: 'test',
+ header: 'Test',
+ cell: item => item.test,
+ };
+ render();
+ });
+
describe('success icon behaviour', () => {
const bodyCellSuccessIcon$ = `.${styles['body-cell-success']}`;
diff --git a/src/table/body-cell/index.tsx b/src/table/body-cell/index.tsx
index 8c0332fc86..bd86318c38 100644
--- a/src/table/body-cell/index.tsx
+++ b/src/table/body-cell/index.tsx
@@ -85,7 +85,7 @@ function TableCellEditable({
onMouseEnter={() => setHasHover(true)}
onMouseLeave={() => setHasHover(false)}
>
- {isEditing ? (
+ {isEditing && column.editConfig ? (