diff --git a/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js b/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js index 138a94b995..507a17766a 100644 --- a/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js +++ b/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js @@ -306,7 +306,7 @@ class MutipleDirOperationToolbar extends React.Component { } getDirentPath = (dirent) => { - if (dirent) return Utils.joinPath(this.state.path, dirent.name); + if (dirent) return Utils.joinPath(this.props.path, dirent.name); } render() { diff --git a/frontend/src/pages/lib-content-view/lib-content-toolbar.js b/frontend/src/pages/lib-content-view/lib-content-toolbar.js index 7084743953..8f2830db8c 100644 --- a/frontend/src/pages/lib-content-view/lib-content-toolbar.js +++ b/frontend/src/pages/lib-content-view/lib-content-toolbar.js @@ -47,7 +47,6 @@ const propTypes = { // selected menu onDirentSelected: PropTypes.func.isRequired, showDirentDetail: PropTypes.func.isRequired, - listRelatedFiles: PropTypes.func.isRequired, onFilesTagChanged: PropTypes.func.isRequired, updateDirent: PropTypes.func.isRequired, }; @@ -103,7 +102,6 @@ class LibContentToolbar extends React.Component { updateDirent={this.props.updateDirent} onDirentSelected={this.props.onDirentSelected} showDirentDetail={this.props.showDirentDetail} - listRelatedFiles={this.props.listRelatedFiles} relatedFiles={this.props.relatedFiles} unSelectDirent={this.props.unSelectDirent} onFilesTagChanged={this.props.onFilesTagChanged}