1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

hide capture information ui when value is empty (#7077)

Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
Aries
2024-11-21 15:56:57 +08:00
committed by GitHub
parent 4e5c0938fa
commit 8535af4b7e

View File

@@ -131,6 +131,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail,
<Collapse title={gettext('General information')}>
{dom}
</Collapse>
{Object.keys(fileDetailsJson).length > 0 && (
<Collapse title={gettext('Capture information')}>
{Object.entries(fileDetailsJson).map(item => {
return (
@@ -141,6 +142,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail,
);
})}
</Collapse>
)}
</>
);
}