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

fix markdown preview (#6735)

This commit is contained in:
Michael An
2024-09-09 11:55:41 +08:00
committed by GitHub
parent 908150f43b
commit 6e5c50c4bf
3 changed files with 7 additions and 7 deletions

View File

@@ -485,7 +485,7 @@ class LibContentView extends React.Component {
// update state
this.setState({
isFileLoading: true,
path: filePath,
path: noRedirection ? this.state.path : filePath,
isViewFile: true
});
@@ -1902,7 +1902,7 @@ class LibContentView extends React.Component {
onCloseMarkdownViewDialog = () => {
this.setState({
isViewFile: false,
path: '/'
currentDirent: {},
});
};