diff --git a/frontend/src/components/sf-table/editors/editor-container/popup-editor-container.js b/frontend/src/components/sf-table/editors/editor-container/popup-editor-container.js index 46d1cfe85b..b3dba1f0b0 100644 --- a/frontend/src/components/sf-table/editors/editor-container/popup-editor-container.js +++ b/frontend/src/components/sf-table/editors/editor-container/popup-editor-container.js @@ -124,7 +124,7 @@ class PopupEditorContainer extends React.Component { // The input area in the interface loses focus. Use this.getEditor().getValue() to get data. commit = (closeEditor) => { const { record } = this.props; - if (!record._id) return; + if (!record || !record._id) return; const updated = (this.getEditor() && this.getEditor().getValue()) || {}; this.commitData(updated, closeEditor); };