mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
fix delete tagged file (#3957)
This commit is contained in:
@@ -38,7 +38,7 @@ class ListTaggedFilesDialog extends React.Component {
|
||||
seafileAPI.deleteFileTag(repoID, fileTagID).then(res => {
|
||||
this.getTaggedFiles();
|
||||
this.props.updateUsedRepoTags();
|
||||
if (this.props.onFileTagChanged) this.onFileTagChanged(taggedFile);
|
||||
if ((this.props.onFileTagChanged) && !taggedFile.file_deleted) this.onFileTagChanged(taggedFile);
|
||||
}).catch(error => {
|
||||
let errMessage = Utils.getErrorMsg(error);
|
||||
toaster.danger(errMessage);
|
||||
|
Reference in New Issue
Block a user