mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 20:37:42 +00:00
fix: metadata status (#7328)
* fix: metadata status * feat: optimize code --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -35,6 +35,12 @@ export const MetadataStatusProvider = ({ repoID, repoInfo, hideMetadataView, chi
|
||||
}, [hideMetadataView]);
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(true);
|
||||
setEnableMetadata(false);
|
||||
setEnableTags(false);
|
||||
setEnableOCR(false);
|
||||
setDetailsSettings({});
|
||||
setIsBeingBuilt(false);
|
||||
if (!enableMetadataManagement) {
|
||||
cancelMetadataURL();
|
||||
setLoading(false);
|
||||
|
Reference in New Issue
Block a user