mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[dir view - column mode] markdown file view: fixup for tags(display & edit) (#5497)
This commit is contained in:
@@ -1333,7 +1333,12 @@ class LibContentView extends React.Component {
|
||||
let fileTags = res.data.file_tags.map(item => {
|
||||
return new FileTag(item);
|
||||
});
|
||||
this.updateDirent(dirent, 'file_tags', fileTags);
|
||||
|
||||
if (this.state.isViewFile) {
|
||||
this.setState({fileTags: fileTags});
|
||||
} else {
|
||||
this.updateDirent(dirent, 'file_tags', fileTags);
|
||||
}
|
||||
}).catch(error => {
|
||||
let errMessage = Utils.getErrorMsg(error);
|
||||
toaster.danger(errMessage);
|
||||
|
Reference in New Issue
Block a user