1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

repair dir-view search bug (#2833)

This commit is contained in:
杨顺强
2019-01-15 18:44:24 +08:00
committed by Daniel Pan
parent 3c1bc00d82
commit 26c4565426

View File

@@ -512,6 +512,7 @@ class DirView extends React.Component {
onSearchedClick = (selectedItem) => {
if (selectedItem.is_dir === true) {
this.updateDirentList(selectedItem.path);
this.setState({path: selectedItem.path});
} else {
let url = siteRoot + 'lib/' + selectedItem.repo_id + '/file' + selectedItem.path;