mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 12:58:34 +00:00
hotfix(metadata): add boundary check (#7868)
This commit is contained in:
@@ -124,7 +124,7 @@ export const MetadataDetailsProvider = ({ repoID, repoInfo, path, dirent, dirent
|
||||
const newValue = tags ? tags.map(id => ({ row_id: id, display_value: id })) : [];
|
||||
const update = { [PRIVATE_COLUMN_KEY.TAGS]: newValue };
|
||||
setRecord({ ...record, ...update });
|
||||
modifyLocalFileTags(record_id, tags);
|
||||
modifyLocalFileTags && modifyLocalFileTags(record_id, tags);
|
||||
if (window?.sfMetadataContext?.eventBus) {
|
||||
window.sfMetadataContext.eventBus.dispatch(EVENT_BUS_TYPE.LOCAL_RECORD_CHANGED, { recordId: record_id }, update);
|
||||
}
|
||||
|
Reference in New Issue
Block a user