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:
@@ -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: {},
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user