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

Fix open folder error when select folder (#6899)

* 01 fix code bug when select another folder

* 02 optimise codes

* 03 fix no share link style
This commit is contained in:
Michael An
2024-10-15 11:59:54 +08:00
committed by GitHub
parent 2a5d27e9de
commit 14108e2c0e
3 changed files with 19 additions and 26 deletions

View File

@@ -20,7 +20,10 @@ const DetailContainer = React.memo(({ repoID, path, dirent, currentRepoInfo, rep
if (path === '/' && !dirent) {
return (
<LibDetail currentRepoInfo={currentRepoInfo} onClose={onClose} />
<LibDetail
currentRepoInfo={currentRepoInfo}
onClose={onClose}
/>
);
}
return (
@@ -36,7 +39,8 @@ const DetailContainer = React.memo(({ repoID, path, dirent, currentRepoInfo, rep
/>
);
}, (props, nextProps) => {
const isChanged = props.repoID !== nextProps.repoID ||
const isChanged =
props.repoID !== nextProps.repoID ||
props.path !== nextProps.path ||
!ObjectUtils.isSameObject(props.dirent, nextProps.dirent) ||
!ObjectUtils.isSameObject(props.currentRepoInfo, nextProps.currentRepoInfo) ||

View File

@@ -73,7 +73,7 @@ class LinkList extends React.Component {
</div>
</div>
{shareLinks.length == 0 ? (
<EmptyTip text={gettext('No share links')}/>
<EmptyTip text={gettext('No share links')} className='m-0' />
) : (
<div className='share-list-container share-link-list'>
<table className="table-place-header">