1
0
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:
Guodong SU
2025-05-29 18:06:17 +08:00
committed by GitHub
parent 12840046cd
commit 5132c9cb89

View File

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