1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

fix search folder in tag view

This commit is contained in:
Michael An
2025-04-14 15:44:55 +08:00
parent 7a7079ed48
commit 9249e4da17

View File

@@ -597,7 +597,8 @@ class Search extends Component {
if (this.props.repoID) {
const { path } = this.props;
const isMetadataView = path && path.startsWith('/' + PRIVATE_FILE_TYPE.FILE_EXTENDED_PROPERTIES);
if (path && path !== '/' && !this.props.isViewFile && !isMetadataView) {
const isTagView = path && path.startsWith('/' + PRIVATE_FILE_TYPE.TAGS_PROPERTIES);
if (path && path !== '/' && !this.props.isViewFile && !isMetadataView && !isTagView) {
return (
<div className="search-types">
<div className={`search-types-repo ${highlightIndex === 0 ? 'search-types-highlight' : ''}`} onClick={this.searchRepo} tabIndex={0}>