mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Merge pull request #8038 from aignatov-bio/ai-sci-11253-fix-preview-update
Fix restore version in file preview [SCI-11253]
This commit is contained in:
commit
abea4638d3
1 changed files with 3 additions and 3 deletions
|
@ -131,11 +131,11 @@ export default {
|
|||
document.getElementById('editImageButton').click();
|
||||
},
|
||||
refreshPreview() {
|
||||
const imageElement = document.querySelector('.file-preview-container .asset-image');
|
||||
const filePreview = document.querySelector('.file-preview-container');
|
||||
|
||||
if (!imageElement) return;
|
||||
if (!filePreview) return;
|
||||
|
||||
$('#filePreviewModal').modal('hide');
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue