1
0
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:
llj
2023-06-07 20:41:12 +08:00
committed by GitHub
parent ff86195097
commit b4ed03c537
4 changed files with 10 additions and 4 deletions

View File

@@ -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);