Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwenxuan authored and zhouwenxuan committed Jan 19, 2025
1 parent 3c4db1d commit 9768c70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@seafile/sdoc-editor": "1.0.206",
"@seafile/seafile-calendar": "0.0.28",
"@seafile/seafile-editor": "1.0.133",
"@seafile/sf-metadata-ui-component": "^0.0.65-beta.1",
"@seafile/sf-metadata-ui-component": "^0.0.65",
"@seafile/stldraw-editor": "0.1.5",
"@uiw/codemirror-extensions-langs": "^4.19.4",
"@uiw/codemirror-themes": "^4.23.5",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/metadata/hooks/metadata-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const MetadataDetailsProvider = ({ repoID, repoInfo, path, dirent, dirent
setRecord({ ...record, ...update });
if (window?.sfMetadataContext?.eventBus) {
window.sfMetadataContext.eventBus.dispatch(EVENT_BUS_TYPE.LOCAL_RECORD_CHANGED, { recordId }, update);
window.sfMetadataContext.eventBus.dispatch(EVENT_BUS_TYPE.LOCAL_RECORD_DETAIL_CHANGED, recordId, update);
}
}).catch(error => {
const errorMsg = Utils.getErrorMsg(error);
Expand Down

0 comments on commit 9768c70

Please sign in to comment.