1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-22 16:56:57 +00:00

fix delete tagged file (#3957)

This commit is contained in:
王健辉 2019-08-07 02:29:02 -05:00 committed by Daniel Pan
parent ca4e3b4a08
commit eb39b99e22

View File

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