Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
check if cell is valid #1360
Browse files Browse the repository at this point in the history
  • Loading branch information
wiadev committed Nov 28, 2017
1 parent b860b40 commit bd7443e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table/TableItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class TableItem extends Component {
const supportFieldEdit = mainTable &&
this.isAllowedFieldEdit(item);
const property = item.fields[0].field;
let isEditable = ((cells[property] &&
let isEditable = ((cells && cells[property] &&
cells[property].viewEditorRenderMode
) || item.viewEditorRenderMode
) === VIEW_EDITOR_RENDER_MODES[2];
Expand Down

0 comments on commit bd7443e

Please sign in to comment.