mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 19:37:28 +00:00
feat: insert column (#6358)
* feat: insert column * feat: adjust api * feat: delete code --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -101,7 +101,7 @@ class ExtraMetadataAttributesDialog extends Component {
|
||||
let newValue = update[column.key];
|
||||
let recordID = this.state.row._id;
|
||||
if (this.isExist) {
|
||||
metadataAPI.updateMetadataRecord(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);
|
||||
|
Reference in New Issue
Block a user