1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

fix(tags): commit error

This commit is contained in:
renjie-run
2025-02-17 18:25:26 +08:00
parent 79413cb4fd
commit 9dce302e1e

View File

@@ -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);
};