1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

fix: js warning (#6374)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-18 17:54:28 +08:00
committed by GitHub
parent 71a04bf7b6
commit a87c1769e6
5 changed files with 8 additions and 8 deletions

View File

@@ -101,7 +101,7 @@ class ExtraMetadataAttributesDialog extends Component {
let newValue = update[column.key];
let recordID = this.state.row._id;
if (this.isExist) {
metadataAPI.modifyRecord(repoID, recordID, { [column.name]: newValue}).then(res => {
metadataAPI.modifyRecord(repoID, recordID, { [column.name]: newValue }).then(res => {
this.setState({ update: {}, row: res.data.row });
}).catch(error => {
const errorMsg = Utils.getErrorMsg(error);