mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
hide capture information ui when value is empty (#7077)
Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
@@ -131,6 +131,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail,
|
|||||||
<Collapse title={gettext('General information')}>
|
<Collapse title={gettext('General information')}>
|
||||||
{dom}
|
{dom}
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
{Object.keys(fileDetailsJson).length > 0 && (
|
||||||
<Collapse title={gettext('Capture information')}>
|
<Collapse title={gettext('Capture information')}>
|
||||||
{Object.entries(fileDetailsJson).map(item => {
|
{Object.entries(fileDetailsJson).map(item => {
|
||||||
return (
|
return (
|
||||||
@@ -141,6 +142,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail,
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user