1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

change search result is markdown open in new tab (#6820)

This commit is contained in:
Michael An
2024-09-23 14:37:39 +08:00
committed by GitHub
parent e01ea7eee1
commit 249b5ac167

View File

@@ -1071,13 +1071,9 @@ class LibContentView extends React.Component {
// load mainPanel
if (item.is_dir) {
this.showDir(path);
} else {
if (Utils.isMarkdownFile(path)) {
this.showFile(path);
} else {
this.openSearchedNewTab(item);
}
}
} else {
if (item.is_dir) {
this.showDir(path);