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

fix markdown file type (#6312)

This commit is contained in:
Michael An
2024-07-08 17:19:40 +08:00
committed by GitHub
parent 6f0bd6920c
commit 739a12ada4

View File

@@ -50,10 +50,6 @@ class DirTool extends React.Component {
this.setState({isRepoTagDialogOpen: false});
};
isMarkdownFile(filePath) {
return Utils.getFileName(filePath).includes('.md');
}
getMenu = () => {
const list = [];
const { repoID, userPerm, currentPath } = this.props;
@@ -61,7 +57,7 @@ class DirTool extends React.Component {
if (userPerm !== 'rw') {
return list;
}
if (this.isMarkdownFile(currentPath)) {
if (Utils.isMarkdownFile(currentPath)) {
return list;
}