mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-22 08:47:22 +00:00
Merge pull request #7477 from haiwen/fix-edit-tag-error
fix(tags): commit error
This commit is contained in:
commit
d8c6c0c684
@ -124,7 +124,7 @@ class PopupEditorContainer extends React.Component {
|
|||||||
// The input area in the interface loses focus. Use this.getEditor().getValue() to get data.
|
// The input area in the interface loses focus. Use this.getEditor().getValue() to get data.
|
||||||
commit = (closeEditor) => {
|
commit = (closeEditor) => {
|
||||||
const { record } = this.props;
|
const { record } = this.props;
|
||||||
if (!record._id) return;
|
if (!record || !record._id) return;
|
||||||
const updated = (this.getEditor() && this.getEditor().getValue()) || {};
|
const updated = (this.getEditor() && this.getEditor().getValue()) || {};
|
||||||
this.commitData(updated, closeEditor);
|
this.commitData(updated, closeEditor);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user