1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

repair code bug

This commit is contained in:
shanshuirenjia
2021-09-24 12:17:20 +08:00
parent 46fdbb282f
commit 911add8bec

View File

@@ -159,7 +159,9 @@ class MoveDirent extends React.Component {
title = gettext('Move selected item(s) to:');
}
let mode = this.props.repoEncrypted ? 'only_current_library':'current_repo_and_other_repos';
const { permission } = this.props.dirent;
const { dirent, selectedDirentList } = this.props;
const movedDirent = dirent ? dirent : selectedDirentList[0];
const { permission } = movedDirent;
const { isCustomPermission } = Utils.getUserPermission(permission);
if (isCustomPermission) {
mode = 'only_current_library';