From 46e8aac5c6af1dffa48d38d4b43d6cb84e9f08b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=9B=BD=E7=92=87?= Date: Fri, 16 Aug 2024 20:31:34 +0800 Subject: [PATCH] feat: update code --- .../src/components/dirent-detail/dirent-details/file-details.js | 2 +- frontend/src/metadata/metadata-details/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/dirent-detail/dirent-details/file-details.js b/frontend/src/components/dirent-detail/dirent-details/file-details.js index b00e54072d..1442961d31 100644 --- a/frontend/src/components/dirent-detail/dirent-details/file-details.js +++ b/frontend/src/components/dirent-detail/dirent-details/file-details.js @@ -62,7 +62,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail, )} - {window.app.pageOptions.enableMetadataManagement && ( + {window.app.pageOptions.enableMetadataManagement && enableMetadata && ( )} {isEditFileTagShow && diff --git a/frontend/src/metadata/metadata-details/index.js b/frontend/src/metadata/metadata-details/index.js index 71a4b0b37f..ccab1cedea 100644 --- a/frontend/src/metadata/metadata-details/index.js +++ b/frontend/src/metadata/metadata-details/index.js @@ -13,7 +13,7 @@ import { CellType, getColumnOptions, getOptionName, PREDEFINED_COLUMN_KEYS, getC import './index.css'; -const MetadataDetails = ({ repoID, filePath, repoInfo, direntType, emptyTip }) => { +const MetadataDetails = ({ repoID, filePath, repoInfo, direntType }) => { const [isLoading, setLoading] = useState(true); const [metadata, setMetadata] = useState({ record: {}, fields: [] }); const permission = useMemo(() => repoInfo.permission !== 'admin' && repoInfo.permission !== 'rw' ? 'r' : 'rw', [repoInfo]);